Hello!
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?
Hello @Anastasiya
Welcome to the Atlassian community.
Have you referenced the REST API documentation for guidance?
https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for that clarification.
According to this:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#async-operations
...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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.