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

Get an issue's subtask list

Returns an issue’s subtask list

GET/api/2/issue/{issueIdOrKey}/subtask
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
issueIdOrKeystringrequired

The parent issue's key or id

Responses
200

Returned if the request was successful.

fieldsFields
Show properties
issuetypeIssueTypeJsonBean
Show properties
avatarIdinteger<int64>
descriptionstring
iconUrlstring
idstring
namestring
selfstring
subtaskboolean
priorityPriorityJsonBean
Show properties
descriptionstring
iconUrlstring
idstring
namestring
selfstring
statusColorstring
statusStatusJsonBean
Show properties
descriptionstring
iconUrlstring
idstring
namestring
selfstring
statusCategoryStatusCategoryJsonBean
Show properties
colorNamestring
idinteger<int64>
keystring
namestring
selfstring
statusColorstring
summarystring
idstring
keystring
selfstring<uri>
403

Returned if the user is not allowed to edit the issue

404

Returned if the issue doesn't exist

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/issue/string/subtask' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "fields": {
    "issuetype": {
      "avatarId": 10002,
      "description": "A problem which impairs or prevents the functions of the product.",
      "iconUrl": "http://www.example.com/jira/images/icons/issuetypes/bug.png",
      "id": "1",
      "name": "Bug",
      "self": "http://www.example.com/jira/rest/api/2/issuetype/1",
      "subtask": false
    },
    "priority": {
      "description": "This is a description of the priority",
      "iconUrl": "http://www.example.com/jira/images/icons/priorities/major.png",
      "id": "1",
      "name": "Major",
      "self": "http://www.example.com/jira/rest/api/2/priority/1",
      "statusColor": "red"
    },
    "status": {
      "description": "The issue is currently being worked on.",
      "iconUrl": "http://localhost:8090/jira/images/icons/progress.gif",
      "id": "10000",
      "name": "In Progress",
      "self": "http://localhost:8090/jira/rest/api/2.0/status/10000",
      "statusCategory": {
        "colorName": "blue-gray",
        "id": 1,
        "key": "new",
        "name": "To Do",
        "self": "http://localhost:8090/jira/rest/api/2.0/statuscategory/1"
      },
      "statusColor": "green"
    },
    "summary": "string"
  },
  "id": "10000",
  "key": "HSP-1",
  "self": "http://www.example.com/jira/rest/api/2/issue/10000"
}

Was this page helpful?