You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Join now to unlock these features and more
I need a help with REST API of JIRA.
I try to use an api method "get task", but I don't understand how it works. I need to do an asynchronous operations for this method. What I need to do for it? Maybe I need to use some specific method for this?
Welcome to the Atlassian community.
Have you referenced the REST API documentation for guidance?
This is the section that specifically addresses retrieving a Jira issue.
Hello @Trudy Claspill
You send me the documentation for method "Get Issue", but I told you about another method "Get Task" (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-tasks/#api-rest-api-3-task-taskid-get)
And all of my questions are about this method.
Thanks for you reply.
Thank you for that clarification.
According to this:
...some API calls will start an asynchronous task, and when they do they return a "303" response.
I would guess that the response will also include the Task ID for the asynchronous task.
You need to get the Task ID and plug that into the call to the Get Task API call. The response you get to that includes the status of the asynchronous task. You can review that information to determine if the asynchronous task has completed.