Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get task by ID

Returns information about a long-running task.

GET/rest/api/longtask/{id}
Path parameters
idstringrequired

the key of the task to be returned.

Query parameters
expandstring

a comma separated list of properties to expand on the task.

Responses
200

returns a full JSON representation of a long task.

idstring
nameMessage
Show properties
keystring
argsobject[]
translationstring
elapsedTimeinteger<int64>
percentageCompleteinteger<int32>
successfulboolean
messagesMessage[]
Show properties
Array of Message
keystring
argsobject[]
translationstring
404

Returned if there is no task with the given key, or if the calling user does not have permission to view it

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/longtask/string' \
  -H 'Accept: application/json'
Response
{
  "id": "string",
  "name": {
    "key": "string",
    "args": [
      {}
    ],
    "translation": "string"
  },
  "elapsedTime": 123456,
  "percentageComplete": 50,
  "successful": true,
  "messages": [
    {
      "key": "string",
      "args": [
        {}
      ],
      "translation": "string"
    }
  ]
}

Was this page helpful?