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

Get tasks

Returns information about all tracked long-running tasks.

GET/rest/api/longtask
Query parameters
expandstring

comma separated list of properties to expand on the tasks.

limitstring

the limit of the number of items to return, this may be restricted by fixed system limits

startstring

the start point of the collection to return.

Responses
200

returns a full JSON representation of a list of long tasks.

resultsLongTaskStatus[]
Show properties
Array of LongTaskStatus
idstring
nameMessage
Show properties
keystring
argsobject[]
translationstring
elapsedTimeinteger<int64>
percentageCompleteinteger<int32>
successfulboolean
messagesMessage[]
Show properties
Array of Message
keystring
argsobject[]
translationstring
startnumber
limitnumber
sizenumber
_linksobject
Show properties
basestring
selfstring
contextstring
nextstring
prevstring
Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/longtask' \
  -H 'Accept: application/json'
Response
{
  "results": [
    {
      "id": "string",
      "name": {
        "key": "string",
        "args": [
          {}
        ],
        "translation": "string"
      },
      "elapsedTime": 123456,
      "percentageComplete": 50,
      "successful": true,
      "messages": [
        {
          "key": "string",
          "args": [
            {}
          ],
          "translation": "string"
        }
      ]
    }
  ],
  "start": 25,
  "limit": 25,
  "size": 25,
  "_links": {
    "base": "http://localhost:8085/rest/api",
    "self": "http://localhost:8085/rest/api",
    "context": "http://localhost:8085/rest/api",
    "next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50",
    "prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0"
  }
}

Was this page helpful?