Cloud
Jira Service Management Cloud / Reference / REST API

Request

Postman Collection
OpenAPI
Operations
GET/rest/servicedeskapi/requestPOST/rest/servicedeskapi/requestGET/rest/servicedeskapi/request/{issueIdOrKey}GET/rest/servicedeskapi/request/{issueIdOrKey}/approvalGET/rest/servicedeskapi/request/{issueIdOrKey}/approval/{approvalId}POST/rest/servicedeskapi/request/{issueIdOrKey}/approval/{approvalId}GET/rest/servicedeskapi/request/{issueIdOrKey}/attachmentPOST/rest/servicedeskapi/request/{issueIdOrKey}/attachmentGET/rest/servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}GET/rest/servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}/thumbnailGET/rest/servicedeskapi/request/{issueIdOrKey}/commentPOST/rest/servicedeskapi/request/{issueIdOrKey}/commentGET/rest/servicedeskapi/request/{issueIdOrKey}/comment/{commentId}GET/rest/servicedeskapi/request/{issueIdOrKey}/comment/{commentId}/attachmentGET/rest/servicedeskapi/request/{issueIdOrKey}/notificationPUT/rest/servicedeskapi/request/{issueIdOrKey}/notificationDEL/rest/servicedeskapi/request/{issueIdOrKey}/notificationGET/rest/servicedeskapi/request/{issueIdOrKey}/participantPOST/rest/servicedeskapi/request/{issueIdOrKey}/participantDEL/rest/servicedeskapi/request/{issueIdOrKey}/participantGET/rest/servicedeskapi/request/{issueIdOrKey}/slaGET/rest/servicedeskapi/request/{issueIdOrKey}/sla/{slaMetricId}GET/rest/servicedeskapi/request/{issueIdOrKey}/statusGET/rest/servicedeskapi/request/{issueIdOrKey}/transitionPOST/rest/servicedeskapi/request/{issueIdOrKey}/transitionGET/rest/servicedeskapi/request/{requestIdOrKey}/feedbackPOST/rest/servicedeskapi/request/{requestIdOrKey}/feedbackDEL/rest/servicedeskapi/request/{requestIdOrKey}/feedback
GET

Get customer requests

This method returns all customer requests for the user executing the query.

The returned customer requests are ordered chronologically by the latest activity on each request. For example, the latest status transition or comment.

Permissions required: Permission to access the specified service desk.

Response limitations: For customers, the list returned will include request they created (or were created on their behalf) or are participating in only.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Query parameters

searchTerm

string

requestOwnership

array<string>

requestStatus

string

approvalStatus

string

organizationId

integer

serviceDeskId

integer

requestTypeId

integer

expand

array<string>

start

integer

limit

integer

Responses

Returns the customer requests, on the specified page of the results.

application/json

PagedDTOCustomerRequestDTO
GET/rest/servicedeskapi/request
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 { "_expands": [ "participant", "status", "sla", "requestType", "serviceDesk", "attachment", "action", "comment" ], "size": 3, "start": 3, "limit": 3, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request?start=6&limit=3", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request?start=0&limit=3" }, "values": [ { "_expands": [ "participant", "status", "sla", "requestType", "serviceDesk", "attachment", "action", "comment" ], "issueId": "107001", "issueKey": "HELPDESK-1", "summary": "Request JSD help via REST", "requestTypeId": "25", "serviceDeskId": "10", "createdDate": { "epochMillis": 1444290120000, "friendly": "Monday 14:42 PM", "iso8601": "2015-10-08T14:42:00+0700", "jira": "2015-10-08T14:42:00.000+0700" }, "reporter": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "requestFieldValues": [ { "fieldId": "summary", "label": "What do you need?", "value": "Request JSD help via REST" }, { "fieldId": "description", "label": "Why do you need this?", "renderedValue": { "html": "<p>I need a new <b>mouse</b> for my Mac</p>" }, "value": "I need a new *mouse* for my Mac" } ], "currentStatus": { "status": "Waiting for Support", "statusCategory": "NEW", "statusDate": { "epochMillis": 1444287660000, "friendly": "Today 14:01 PM", "iso8601": "2015-10-08T14:01:00+0700", "jira": "2015-10-08T14:01:00.000+0700" } }, "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/issue/107001", "web": "https://your-domain.atlassian.net/servicedesk/customer/portal/10/HELPDESK-1", "agent": "https://your-domain.atlassian.net/browse/HELPDESK-1", "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/107001" } }, { "_expands": [ "participant", "status", "sla", "requestType", "serviceDesk", "attachment", "action", "comment" ], "issueId": "107002", "issueKey": "HELPDESK-2", "requestTypeId": "25", "serviceDeskId": "10", "createdDate": { "epochMillis": 1444289400000, "friendly": "Monday 14:30 PM", "iso8601": "2015-10-08T14:30:00+0700", "jira": "2015-10-08T14:30:00.000+0700" }, "reporter": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "requestFieldValues": [ { "fieldId": "summary", "label": "What do you need?", "value": "Request a new account" }, { "fieldId": "description", "label": "Why do you need this?", "value": "Create an account on Jira" } ], "currentStatus": { "status": "Waiting for Support", "statusCategory": "NEW", "statusDate": { "epochMillis": 1444287660000, "friendly": "Today 14:01 PM", "iso8601": "2015-10-08T14:01:00+0700", "jira": "2015-10-08T14:01:00.000+0700" } }, "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/issue/107002", "web": "https://your-domain.atlassian.net/servicedesk/customer/portal/10/HELPDESK-2", "agent": "https://your-domain.atlassian.net/browse/HELPDESK-2", "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/107002" } }, { "_expands": [ "participant", "status", "sla", "requestType", "serviceDesk", "attachment", "action", "comment" ], "issueId": "109006", "issueKey": "SIMPLEDESK-6", "requestTypeId": "33", "serviceDeskId": "12", "createdDate": { "epochMillis": 1444030200000, "friendly": "Monday 14:30 PM", "iso8601": "2015-10-05T14:30:00+0700", "jira": "2015-10-05T14:30:00.000+0700" }, "reporter": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "requestFieldValues": [ { "fieldId": "summary", "label": "Summarize the problem", "value": "Printer on level 3 did not work" }, { "fieldId": "description", "value": "Ink cartridge is empty" } ], "currentStatus": { "status": "Waiting for Support", "statusCategory": "NEW", "statusDate": { "epochMillis": 1444287600000, "friendly": "Today 14:00 PM", "iso8601": "2015-10-08T14:00:00+0700", "jira": "2015-10-08T14:00:00.000+0700" } }, "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/issue/109006", "web": "https://your-domain.atlassian.net/servicedesk/customer/portal/12/SIMPLEDESK-6", "agent": "https://your-domain.atlassian.net/browse/SIMPLEDESK-6", "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/109006" } } ] }
POST

Create customer request

This method creates a customer request in a service desk.

The JSON request must include the service desk and customer request type, as well as any fields that are required for the request type. A list of the fields required by a customer request type can be obtained using servicedesk/{serviceDeskId}/requesttype/{requestTypeId}/field.

The fields required for a customer request type depend on the user's permissions:

  • raiseOnBehalfOf is not available to Users who have the customer permission only.
  • requestParticipants is not available to Users who have the customer permission only or if the feature is turned off for customers.

requestFieldValues is a map of Jira field IDs and their values. See Field input formats, for details of each field's JSON semantics and the values they can take.

Permissions required: Permission to create requests in the specified service desk.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request:jira-service-management, write:request:jira-service-management, read:user:jira

Connect app scope requiredWRITE

Request

Request bodyapplication/json

channel

string

form

Form

isAdfRequest

boolean

raiseOnBehalfOf

string

requestFieldValues

object

requestParticipants

array<string>

requestTypeId

string

serviceDeskId

string

Responses

Returned if the customer request was created.

application/json

CustomerRequestDTO
POST/rest/servicedeskapi/request
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 curl --request POST \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "form": { "answers": { "1": { "text": "Answer to a text form field" }, "2": { "date": "2023-07-06" }, "3": { "time": "14:35" }, "4": { "choices": [ "5" ] }, "5": { "users": [ "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d69abfa3980ce712caae" ] } } }, "isAdfRequest": false, "requestFieldValues": { "description": "I need a new *mouse* for my Mac", "summary": "Request JSD help via REST" }, "requestParticipants": [ "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d69abfa3980ce712caae" ], "requestTypeId": "25", "serviceDeskId": "10" }'
201Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 { "_expands": [ "participant", "status", "sla", "requestType", "serviceDesk", "attachment", "action", "comment" ], "issueId": "107001", "issueKey": "HELPDESK-1", "summary": "Request JSD help via REST", "requestTypeId": "25", "serviceDeskId": "10", "createdDate": { "epochMillis": 1444290120000, "friendly": "Monday 14:42 PM", "iso8601": "2015-10-08T14:42:00+0700", "jira": "2015-10-08T14:42:00.000+0700" }, "reporter": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "requestFieldValues": [ { "fieldId": "summary", "label": "What do you need?", "value": "Request JSD help via REST" }, { "fieldId": "description", "label": "Why do you need this?", "renderedValue": { "html": "<p>I need a new <b>mouse</b> for my Mac</p>" }, "value": "I need a new *mouse* for my Mac" } ], "currentStatus": { "status": "Waiting for Support", "statusCategory": "NEW", "statusDate": { "epochMillis": 1444287660000, "friendly": "Today 14:01 PM", "iso8601": "2015-10-08T14:01:00+0700", "jira": "2015-10-08T14:01:00.000+0700" } }, "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/issue/107001", "web": "https://your-domain.atlassian.net/servicedesk/customer/portal/10/HELPDESK-1", "agent": "https://your-domain.atlassian.net/browse/HELPDESK-1", "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/107001" } }
GET

Get customer request by id or key

This method returns a customer request.

Permissions required: Permission to access the specified service desk.

Response limitations: For customers, only a request they created, was created on their behalf, or they are participating in will be returned.

Note: requestFieldValues does not include hidden fields. To get a list of request type fields that includes hidden fields, see /rest/servicedeskapi/servicedesk/{serviceDeskId}/requesttype/{requestTypeId}/field

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required

Query parameters

expand

array<string>

Responses

Returns the customer request.

application/json

CustomerRequestDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 { "_expands": [ "participant", "status", "sla", "requestType", "serviceDesk", "attachment", "action", "comment" ], "issueId": "107001", "issueKey": "HELPDESK-1", "summary": "Request JSD help via REST", "requestTypeId": "25", "serviceDeskId": "10", "createdDate": { "epochMillis": 1444290120000, "friendly": "Monday 14:42 PM", "iso8601": "2015-10-08T14:42:00+0700", "jira": "2015-10-08T14:42:00.000+0700" }, "reporter": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "requestFieldValues": [ { "fieldId": "summary", "label": "What do you need?", "value": "Request JSD help via REST" }, { "fieldId": "description", "label": "Why do you need this?", "renderedValue": { "html": "<p>I need a new <b>mouse</b> for my Mac</p>" }, "value": "I need a new *mouse* for my Mac" } ], "currentStatus": { "status": "Waiting for Support", "statusCategory": "NEW", "statusDate": { "epochMillis": 1444287660000, "friendly": "Today 14:01 PM", "iso8601": "2015-10-08T14:01:00+0700", "jira": "2015-10-08T14:01:00.000+0700" } }, "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/issue/107001", "web": "https://your-domain.atlassian.net/servicedesk/customer/portal/10/HELPDESK-1", "agent": "https://your-domain.atlassian.net/browse/HELPDESK-1", "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/107001" } }
GET

Get approvals

This method returns all approvals on a customer request.

Permissions required: Permission to view the customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.approval:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required

Query parameters

start

integer

limit

integer

Responses

Returns the customer request's approvals.

application/json

PagedDTOApprovalDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/approval
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/approval' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 { "_expands": [], "size": 3, "start": 3, "limit": 3, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2/approval?start=6&limit=3", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2/approval?start=0&limit=3" }, "values": [ { "id": "1", "name": "Please approve this request", "finalDecision": "approved", "canAnswerApproval": false, "approvers": [ { "approver": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "approverDecision": "approved" } ], "createdDate": { "epochMillis": 1475046060000, "friendly": "Monday 14:01 PM", "iso8601": "2016-09-28T14:01:00+0700", "jira": "2016-09-28T14:01:00.000+0700" }, "completedDate": { "epochMillis": 1475134200000, "friendly": "Today 14:30 PM", "iso8601": "2016-09-29T14:30:00+0700", "jira": "2016-09-29T14:30:00.000+0700" }, "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2/approval/1" } }, { "id": "2", "name": "Waiting for approval", "finalDecision": "declined", "canAnswerApproval": false, "approvers": [ { "approver": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "approverDecision": "approved" } ], "createdDate": { "epochMillis": 1475650860000, "friendly": "Wednesday 14:01 PM", "iso8601": "2016-10-05T14:01:00+0700", "jira": "2016-10-05T14:01:00.000+0700" }, "completedDate": { "epochMillis": 1475739000000, "friendly": "Thursday 14:30 PM", "iso8601": "2016-10-06T14:30:00+0700", "jira": "2016-10-06T14:30:00.000+0700" }, "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2/approval/2" } } ] }
GET

Get approval by id

This method returns an approval. Use this method to determine the status of an approval and the list of approvers.

Permissions required: Permission to view the customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.approval:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required
approvalId

integer

Required

Responses

Returns the requested approval.

application/json

ApprovalDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/approval/{approvalId}
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/approval/{approvalId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 { "id": "1", "name": "Please approve this request", "finalDecision": "approved", "canAnswerApproval": false, "approvers": [ { "approver": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "approverDecision": "approved" } ], "createdDate": { "epochMillis": 1475046060000, "friendly": "Monday 14:01 PM", "iso8601": "2016-09-28T14:01:00+0700", "jira": "2016-09-28T14:01:00.000+0700" }, "completedDate": { "epochMillis": 1475134200000, "friendly": "Today 14:30 PM", "iso8601": "2016-09-29T14:30:00+0700", "jira": "2016-09-29T14:30:00.000+0700" }, "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2/approval/1" } }
POST

Answer approval

This method enables a user to Approve or Decline an approval on a customer request. The approval is assumed to be owned by the user making the call.

Permissions required: User is assigned to the approval request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request.approval:jira-service-management, write:request.approval:jira-service-management, read:user:jira

Connect app scope requiredWRITE

Request

Path parameters

issueIdOrKey

string

Required
approvalId

integer

Required

Request bodyapplication/json

decision

string

Responses

Returns the updated approval.

application/json

ApprovalDTO
POST/rest/servicedeskapi/request/{issueIdOrKey}/approval/{approvalId}
1 2 3 4 5 6 7 8 curl --request POST \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/approval/{approvalId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "decision": "approve" }'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 { "id": "1", "name": "Please approve this request", "finalDecision": "approved", "canAnswerApproval": false, "approvers": [ { "approver": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "approverDecision": "approved" } ], "createdDate": { "epochMillis": 1475046060000, "friendly": "Monday 14:01 PM", "iso8601": "2016-09-28T14:01:00+0700", "jira": "2016-09-28T14:01:00.000+0700" }, "completedDate": { "epochMillis": 1475134200000, "friendly": "Today 14:30 PM", "iso8601": "2016-09-29T14:30:00+0700", "jira": "2016-09-29T14:30:00.000+0700" }, "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2/approval/1" } }
GET

Get attachments for request

This method returns all the attachments for a customer requests.

Permissions required: Permission to view the customer request.

Response limitations: Customers will only get a list of public attachments.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.attachment:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required

Query parameters

start

integer

Required
limit

integer

Required

Responses

Returns the visible attachments from the customer request.

application/json

PagedDTOAttachmentDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/attachment
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/attachment?start={start}&limit={limit}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 { "_expands": [], "size": 2, "start": 2, "limit": 2, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/IT-15/comment/1001/attachment?start=4&limit=2", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/IT-15/comment/1001/attachment?start=0&limit=2" }, "values": [ { "filename": "screenshot.png", "author": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "created": { "epochMillis": 1444360920000, "friendly": "Today 10:22 AM", "iso8601": "2015-10-09T10:22:00+0700", "jira": "2015-10-09T10:22:00.000+0700" }, "size": 23123, "mimeType": "image/png", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/attachment/10000", "content": "https://your-domain.atlassian.net/servicedesk/customershim/secure/attachment/10000/screenshot.png", "thumbnail": "https://your-domain.atlassian.net/servicedesk/customershim/secure/thumbnail/10000/_thumb_10000.png" } }, { "filename": "log.txt", "author": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "created": { "epochMillis": 1444360920000, "friendly": "Today 10:22 AM", "iso8601": "2015-10-09T10:22:00+0700", "jira": "2015-10-09T10:22:00.000+0700" }, "size": 32132, "mimeType": "text/plain", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/attachment/10001", "content": "https://your-domain.atlassian.net/servicedesk/customershim/secure/attachment/10001/log.txt" } } ] }
POST

Create comment with attachment

This method creates a comment on a customer request using one or more attachment files (uploaded using servicedeskapi/servicedesk/{serviceDeskId}/attachTemporaryFile), with the visibility set by public. See

Permissions required: Permission to add an attachment.

Request limitations: Customers can set public visibility only.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request.attachment:jira-service-management, write:request.attachment:jira-service-management, read:user:jira

Connect app scope requiredWRITE

Request

Path parameters

issueIdOrKey

string

Required

Request bodyapplication/json

additionalComment

AdditionalCommentDTO

public

boolean

temporaryAttachmentIds

array<string>

Responses

Returns the attachments and comment.

application/json

AttachmentCreateResultDTO
POST/rest/servicedeskapi/request/{issueIdOrKey}/attachment
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 curl --request POST \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/attachment' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "additionalComment": { "body": "Please find the screenshot and the log file attached." }, "public": true, "temporaryAttachmentIds": [ "temp910441317820424274", "temp3600755449679003114" ] }'
201Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 { "comment": { "_expands": [ "attachment", "renderedBody" ], "id": "1000", "body": "Please find the screenshot and the log file attached. !screenshot.png|thumbnail! [^log.txt] _(32 kB)_", "public": true, "author": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "created": { "epochMillis": 1444360920000, "friendly": "Today 10:22 AM", "iso8601": "2015-10-09T10:22:00+0700", "jira": "2015-10-09T10:22:00.000+0700" }, "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2000/comment/1000" } }, "attachments": { "_expands": [], "size": 2, "start": 2, "limit": 2, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/IT-15/comment/1001/attachment?start=4&limit=2", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/IT-15/comment/1001/attachment?start=0&limit=2" }, "values": [ { "filename": "screenshot.png", "author": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "created": { "epochMillis": 1444360920000, "friendly": "Today 10:22 AM", "iso8601": "2015-10-09T10:22:00+0700", "jira": "2015-10-09T10:22:00.000+0700" }, "size": 23123, "mimeType": "image/png", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/attachment/10000", "content": "https://your-domain.atlassian.net/servicedesk/customershim/secure/attachment/10000/screenshot.png", "thumbnail": "https://your-domain.atlassian.net/servicedesk/customershim/secure/thumbnail/10000/_thumb_10000.png" } }, { "filename": "log.txt", "author": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "created": { "epochMillis": 1444360920000, "friendly": "Today 10:22 AM", "iso8601": "2015-10-09T10:22:00+0700", "jira": "2015-10-09T10:22:00.000+0700" }, "size": 32132, "mimeType": "text/plain", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/attachment/10001", "content": "https://your-domain.atlassian.net/servicedesk/customershim/secure/attachment/10001/log.txt" } } ] } }
GET

Get attachment content

Returns the contents of an attachment.

To return a thumbnail of the attachment, use servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}/thumbnail.

Permissions required: For the issue containing the attachment:

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.attachment:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required
attachmentId

integer

Required

Responses

200 response

application/json

any

GET/rest/servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
GET

Get attachment thumbnail

Returns the thumbnail of an attachment.

To return the attachment contents, use servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}.

Permissions required: For the issue containing the attachment:

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.attachment:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required
attachmentId

integer

Required

Responses

200 response

application/json

any

GET/rest/servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}/thumbnail
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/attachment/{attachmentId}/thumbnail' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
GET

Get request comments

This method returns all comments on a customer request. No permissions error is provided if, for example, the user doesn't have access to the service desk or request, the method simply returns an empty response.

Permissions required: Permission to view the customer request.

Response limitations: Customers are returned public comments only.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.comment:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required

Query parameters

public

boolean

internal

boolean

expand

array<string>

start

integer

limit

integer

Responses

Returns the comments, on the specified page of the results.

application/json

PagedDTOCommentDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/comment
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/comment' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 { "_expands": [], "size": 1, "start": 1, "limit": 1, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2000/comment?start=2&limit=1", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2000/comment?start=0&limit=1" }, "values": [ { "_expands": [ "attachment", "renderedBody" ], "id": "1000", "body": "Hello there", "public": true, "author": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "created": { "epochMillis": 1444360920000, "friendly": "Today 10:22 AM", "iso8601": "2015-10-09T10:22:00+0700", "jira": "2015-10-09T10:22:00.000+0700" }, "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2000/comment/1000" } } ] }
POST

Create request comment

This method creates a public or private (internal) comment on a customer request, with the comment visibility set by public. The user recorded as the author of the comment.

Permissions required: User has Add Comments permission.

Request limitations: Customers can set comments to public visibility only.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request.comment:jira-service-management, write:request.comment:jira-service-management, read:user:jira

Connect app scope requiredWRITE

Request

Path parameters

issueIdOrKey

string

Required

Request bodyapplication/json

body

string

public

boolean

Responses

Returns the comment.

application/json

CommentDTO
POST/rest/servicedeskapi/request/{issueIdOrKey}/comment
1 2 3 4 5 6 7 8 9 curl --request POST \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/comment' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "body": "Hello there", "public": true }'
201Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 { "_expands": [ "attachment", "renderedBody" ], "id": "1000", "body": "Hello there", "public": true, "author": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "created": { "epochMillis": 1444360920000, "friendly": "Today 10:22 AM", "iso8601": "2015-10-09T10:22:00+0700", "jira": "2015-10-09T10:22:00.000+0700" }, "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2000/comment/1000" } }
GET

Get request comment by id

This method returns details of a customer request's comment.

Permissions required: Permission to view the customer request.

Response limitations: Customers can only view public comments on requests where they are the reporter or a participant whereas agents can see both internal and public comments.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.comment:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required
commentId

integer

Required

Query parameters

expand

array<string>

Responses

Returns the comment.

application/json

CommentDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/comment/{commentId}
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/comment/{commentId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 { "_expands": [ "attachment", "renderedBody" ], "id": "1000", "body": "Hello there", "public": true, "author": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "created": { "epochMillis": 1444360920000, "friendly": "Today 10:22 AM", "iso8601": "2015-10-09T10:22:00+0700", "jira": "2015-10-09T10:22:00.000+0700" }, "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/2000/comment/1000" } }
GET

Get comment attachmentsExperimental

This method returns the attachments referenced in a comment.

Permissions required: Permission to view the customer request.

Response limitations: Customers can only view public comments, and retrieve their attachments, on requests where they are the reporter or a participant whereas agents can see both internal and public comments.

Data Security Policy: Not exempt from app access rules
Scopes
read:request.attachment:jira-service-management
,
read:request.comment:jira-service-management
, read:user:jira

Connect apps cannot access this REST resource.

Request

Path parameters

issueIdOrKey

string

Required
commentId

integer

Required

Query parameters

start

integer

limit

integer

Responses

Returns the attachments, on the specified page of the results.

application/json

PagedDTOAttachmentDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/comment/{commentId}/attachment
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/comment/{commentId}/attachment' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 { "_expands": [], "size": 2, "start": 2, "limit": 2, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/IT-15/comment/1001/attachment?start=4&limit=2", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/IT-15/comment/1001/attachment?start=0&limit=2" }, "values": [ { "filename": "screenshot.png", "author": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "created": { "epochMillis": 1444360920000, "friendly": "Today 10:22 AM", "iso8601": "2015-10-09T10:22:00+0700", "jira": "2015-10-09T10:22:00.000+0700" }, "size": 23123, "mimeType": "image/png", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/attachment/10000", "content": "https://your-domain.atlassian.net/servicedesk/customershim/secure/attachment/10000/screenshot.png", "thumbnail": "https://your-domain.atlassian.net/servicedesk/customershim/secure/thumbnail/10000/_thumb_10000.png" } }, { "filename": "log.txt", "author": { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } }, "created": { "epochMillis": 1444360920000, "friendly": "Today 10:22 AM", "iso8601": "2015-10-09T10:22:00+0700", "jira": "2015-10-09T10:22:00.000+0700" }, "size": 32132, "mimeType": "text/plain", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/attachment/10001", "content": "https://your-domain.atlassian.net/servicedesk/customershim/secure/attachment/10001/log.txt" } } ] }
GET

Get subscription status

This method returns the notification subscription status of the user making the request. Use this method to determine if the user is subscribed to a customer request's notifications.

Permissions required: Permission to view the customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.notification:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required

Responses

Returns the status of the notification subscription.

application/json

RequestNotificationSubscriptionDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/notification
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/notification' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 { "subscribed": true }
PUT

Subscribe

This method subscribes the user to receiving notifications from a customer request.

Permissions required: Permission to view the customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request.notification:jira-service-management, write:request.notification:jira-service-management, read:user:jira

Connect app scope requiredWRITE

Request

Path parameters

issueIdOrKey

string

Required

Responses

Returns if the user was subscribed.

PUT/rest/servicedeskapi/request/{issueIdOrKey}/notification
1 2 3 curl --request PUT \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/notification' \ --header 'Authorization: Bearer <access_token>'
DEL

Unsubscribe

This method unsubscribes the user from notifications from a customer request.

Permissions required: Permission to view the customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request.notification:jira-service-management, delete:request.notification:jira-service-management, read:user:jira

Connect app scope requiredWRITE

Request

Path parameters

issueIdOrKey

string

Required

Responses

Returns if the user was unsubscribed.

DEL/rest/servicedeskapi/request/{issueIdOrKey}/notification
1 2 3 curl --request DELETE \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/notification' \ --header 'Authorization: Bearer <access_token>'
GET

Get request participants

This method returns a list of all the participants on a customer request.

Permissions required: Permission to view the customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.participant:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required

Query parameters

start

integer

limit

integer

Responses

Returns the customer request's participants, on the specified page of the results.

application/json

PagedDTOUserDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/participant
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/participant' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 { "_expands": [], "size": 1, "start": 1, "limit": 1, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/1000/participant?start=2&limit=1", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/1000/participant?start=0&limit=1" }, "values": [ { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } } ] }
POST

Add request participants

This method adds participants to a customer request.

Permissions required: Permission to manage participants on the customer request.

Note, participants can be added when creating a customer request using the request resource, by defining the participants in the requestParticipants field.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request.participant:jira-service-management, write:request.participant:jira-service-management, read:user:jira

Connect app scope requiredWRITE

Request

Path parameters

issueIdOrKey

string

Required

Request bodyapplication/json

accountIds

array<string>

usernames

array<string>

Responses

Returns the participants added to the customer request.

application/json

PagedDTOUserDTO
POST/rest/servicedeskapi/request/{issueIdOrKey}/participant
1 2 3 4 5 6 7 8 9 10 11 12 13 curl --request POST \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/participant' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "accountIds": [], "usernames": [ "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3a01db05e2a66fa80bd", "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d69abfa3980ce712caae" ] }'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 { "_expands": [], "size": 1, "start": 1, "limit": 1, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/1000/participant?start=2&limit=1", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/1000/participant?start=0&limit=1" }, "values": [ { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } } ] }
DEL

Remove request participants

This method removes participants from a customer request.

Permissions required: Permission to manage participants on the customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request.participant:jira-service-management, delete:request.participant:jira-service-management, read:user:jira

Connect app scope requiredDELETE

Request

Path parameters

issueIdOrKey

string

Required

Request bodyapplication/json

accountIds

array<string>

usernames

array<string>

Responses

Returns the first page of the customer request's participants (after removal of the users).

application/json

PagedDTOUserDTO
DEL/rest/servicedeskapi/request/{issueIdOrKey}/participant
1 2 3 4 5 6 7 8 9 10 11 12 13 curl --request DELETE \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/participant' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "accountIds": [], "usernames": [ "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3a01db05e2a66fa80bd", "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d69abfa3980ce712caae" ] }'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 { "_expands": [], "size": 1, "start": 1, "limit": 1, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/1000/participant?start=2&limit=1", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/1000/participant?start=0&limit=1" }, "values": [ { "accountId": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "name": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "key": "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "emailAddress": "fred@example.com", "displayName": "Fred F. User", "active": true, "timeZone": "Australia/Sydney", "_links": { "jiraRest": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b", "avatarUrls": { "16x16": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", "24x24": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", "32x32": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue", "48x48": "https://avatar-cdn.atlassian.com/9bc3b5bcb0db050c6d7660b28a5b86c9?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F9bc3b5bcb0db050c6d7660b28a5b86c9%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" }, "self": "https://your-domain.atlassian.net/rest/api/2/user?username=qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b" } } ] }
GET

Get sla information

This method returns all the SLA records on a customer request. A customer request can have zero or more SLAs. Each SLA can have recordings for zero or more "completed cycles" and zero or 1 "ongoing cycle". Each cycle includes information on when it started and stopped, and whether it breached the SLA goal.

Permissions required: Agent for the Service Desk containing the queried customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:jira-work
Granular:read:request.sla:jira-service-management

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required

Query parameters

start

integer

limit

integer

Responses

Returns the SLA records on the customer request, on the specified page of the results.

application/json

PagedDTOSlaInformationDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/sla
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/sla' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 { "_expands": [], "size": 3, "start": 3, "limit": 3, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/101102/sla?start=6&limit=3", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/101102/sla?start=0&limit=3" }, "values": [ { "name": "Time To First Response", "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/101102/sla/10030" }, "completedCycles": [ { "startTime": { "epochMillis": 1444362323000, "friendly": "Yesterday 10:45 AM", "iso8601": "2015-10-09T10:45:23+0700", "jira": "2015-10-09T10:45:23.000+0700" }, "stopTime": { "epochMillis": 1444362743000, "friendly": "Yesterday 10:52 AM", "iso8601": "2015-10-09T10:52:23+0700", "jira": "2015-10-09T10:52:23.000+0700" }, "breachTime": { "epochMillis": 1444362623000, "friendly": "Yesterday 10:50 AM", "iso8601": "2015-10-09T10:50:23+0700", "jira": "2015-10-09T10:50:23.000+0700" }, "breached": false, "goalDuration": { "millis": 14400000, "friendly": "4h 240m" }, "elapsedTime": { "millis": 420000, "friendly": "0h 7m" }, "remainingTime": { "millis": 13980000, "friendly": "3h 233m" } }, { "startTime": { "epochMillis": 1444449143000, "friendly": "Today 10:52 AM", "iso8601": "2015-10-10T10:52:23+0700", "jira": "2015-10-10T10:52:23.000+0700" }, "stopTime": { "epochMillis": 1444468523000, "friendly": "Today 16:15 PM", "iso8601": "2015-10-10T16:15:23+0700", "jira": "2015-10-10T16:15:23.000+0700" }, "breachTime": { "epochMillis": 1444464743000, "friendly": "Today 15:12 PM", "iso8601": "2015-10-10T15:12:23+0700", "jira": "2015-10-10T15:12:23.000+0700" }, "breached": true, "goalDuration": { "millis": 14400000, "friendly": "4h 240m" }, "elapsedTime": { "millis": 19380000, "friendly": "5h 323m" }, "remainingTime": { "millis": -4980000, "friendly": "-1h -83m" } } ], "ongoingCycle": { "startTime": { "epochMillis": 1444479323000, "friendly": "Today 19:15 PM", "iso8601": "2015-10-10T19:15:23+0700", "jira": "2015-10-10T19:15:23.000+0700" }, "breached": false, "paused": false, "withinCalendarHours": false, "goalDuration": { "millis": 14400000, "friendly": "4h 240m" }, "elapsedTime": { "millis": 5640000, "friendly": "1h 94m" }, "remainingTime": { "millis": 8760000, "friendly": "2h 146m" } } }, { "name": "Time To Resolution", "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/101102/sla/10040" }, "completedCycles": [ { "startTime": { "epochMillis": 1444362323000, "friendly": "Yesterday 10:45 AM", "iso8601": "2015-10-09T10:45:23+0700", "jira": "2015-10-09T10:45:23.000+0700" }, "stopTime": { "epochMillis": 1444398743000, "friendly": "Yesterday 20:52 PM", "iso8601": "2015-10-09T20:52:23+0700", "jira": "2015-10-09T20:52:23.000+0700" }, "breachTime": { "epochMillis": 1444398623000, "friendly": "Yesterday 20:50 PM", "iso8601": "2015-10-09T20:50:23+0700", "jira": "2015-10-09T20:50:23.000+0700" }, "breached": false, "goalDuration": { "millis": 72000000, "friendly": "20h 1200m" }, "elapsedTime": { "millis": 36420000, "friendly": "10h 607m" }, "remainingTime": { "millis": 35580000, "friendly": "9h 593m" } }, { "startTime": { "epochMillis": 1444485143000, "friendly": "Today 20:52 PM", "iso8601": "2015-10-10T20:52:23+0700", "jira": "2015-10-10T20:52:23.000+0700" }, "stopTime": { "epochMillis": 1444504523000, "friendly": "Today 02:15 AM", "iso8601": "2015-10-11T02:15:23+0700", "jira": "2015-10-11T02:15:23.000+0700" }, "breachTime": { "epochMillis": 1444500743000, "friendly": "Today 01:12 AM", "iso8601": "2015-10-11T01:12:23+0700", "jira": "2015-10-11T01:12:23.000+0700" }, "breached": true, "goalDuration": { "millis": 72000000, "friendly": "20h 1200m" }, "elapsedTime": { "millis": 19380000, "friendly": "5h 323m" }, "remainingTime": { "millis": 52620000, "friendly": "14h 877m" } } ], "ongoingCycle": { "startTime": { "epochMillis": 1444515323000, "friendly": "Today 05:15 AM", "iso8601": "2015-10-11T05:15:23+0700", "jira": "2015-10-11T05:15:23.000+0700" }, "breached": false, "paused": false, "withinCalendarHours": false, "goalDuration": { "millis": 72000000, "friendly": "20h 1200m" }, "elapsedTime": { "millis": 5640000, "friendly": "1h 94m" }, "remainingTime": { "millis": 66360000, "friendly": "18h 1106m" } } }, { "name": "Time To Retrospective", "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/101102/sla/10050" }, "completedCycles": [ { "startTime": { "epochMillis": 1444362323000, "friendly": "Yesterday 10:45 AM", "iso8601": "2015-10-09T10:45:23+0700", "jira": "2015-10-09T10:45:23.000+0700" }, "stopTime": { "epochMillis": 1444449143000, "friendly": "Yesterday 10:52 AM", "iso8601": "2015-10-10T10:52:23+0700", "jira": "2015-10-10T10:52:23.000+0700" }, "breachTime": { "epochMillis": 1444449023000, "friendly": "Yesterday 10:50 AM", "iso8601": "2015-10-10T10:50:23+0700", "jira": "2015-10-10T10:50:23.000+0700" }, "breached": false, "goalDuration": { "millis": 144000000, "friendly": "40h 2400m" }, "elapsedTime": { "millis": 86820000, "friendly": "24h 1447m" }, "remainingTime": { "millis": 57180000, "friendly": "15h 953m" } }, { "startTime": { "epochMillis": 1444535543000, "friendly": "Today 10:52 AM", "iso8601": "2015-10-11T10:52:23+0700", "jira": "2015-10-11T10:52:23.000+0700" }, "stopTime": { "epochMillis": 1444554923000, "friendly": "Today 16:15 PM", "iso8601": "2015-10-11T16:15:23+0700", "jira": "2015-10-11T16:15:23.000+0700" }, "breachTime": { "epochMillis": 1444551143000, "friendly": "Today 15:12 PM", "iso8601": "2015-10-11T15:12:23+0700", "jira": "2015-10-11T15:12:23.000+0700" }, "breached": true, "goalDuration": { "millis": 144000000, "friendly": "40h 2400m" }, "elapsedTime": { "millis": 19380000, "friendly": "5h 323m" }, "remainingTime": { "millis": 124620000, "friendly": "34h 2077m" } } ], "ongoingCycle": { "startTime": { "epochMillis": 1444565723000, "friendly": "Today 19:15 PM", "iso8601": "2015-10-11T19:15:23+0700", "jira": "2015-10-11T19:15:23.000+0700" }, "breached": false, "paused": false, "withinCalendarHours": false, "goalDuration": { "millis": 144000000, "friendly": "40h 2400m" }, "elapsedTime": { "millis": 5640000, "friendly": "1h 94m" }, "remainingTime": { "millis": 138360000, "friendly": "38h 2306m" } } } ] }
GET

Get sla information by id

This method returns the details for an SLA on a customer request.

Permissions required: Agent for the Service Desk containing the queried customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:jira-work
Granular:read:request.sla:jira-service-management

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required
slaMetricId

integer

Required

Responses

Returns the SLA record, on the specified page of the results.

application/json

SlaInformationDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/sla/{slaMetricId}
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/sla/{slaMetricId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 { "name": "Time To First Response", "_links": { "self": "https://your-domain.atlassian.net/rest/servicedeskapi/request/101102/sla/10030" }, "completedCycles": [ { "startTime": { "epochMillis": 1444362323000, "friendly": "Yesterday 10:45 AM", "iso8601": "2015-10-09T10:45:23+0700", "jira": "2015-10-09T10:45:23.000+0700" }, "stopTime": { "epochMillis": 1444362743000, "friendly": "Yesterday 10:52 AM", "iso8601": "2015-10-09T10:52:23+0700", "jira": "2015-10-09T10:52:23.000+0700" }, "breachTime": { "epochMillis": 1444362623000, "friendly": "Yesterday 10:50 AM", "iso8601": "2015-10-09T10:50:23+0700", "jira": "2015-10-09T10:50:23.000+0700" }, "breached": false, "goalDuration": { "millis": 14400000, "friendly": "4h 240m" }, "elapsedTime": { "millis": 420000, "friendly": "0h 7m" }, "remainingTime": { "millis": 13980000, "friendly": "3h 233m" } }, { "startTime": { "epochMillis": 1444449143000, "friendly": "Today 10:52 AM", "iso8601": "2015-10-10T10:52:23+0700", "jira": "2015-10-10T10:52:23.000+0700" }, "stopTime": { "epochMillis": 1444468523000, "friendly": "Today 16:15 PM", "iso8601": "2015-10-10T16:15:23+0700", "jira": "2015-10-10T16:15:23.000+0700" }, "breachTime": { "epochMillis": 1444464743000, "friendly": "Today 15:12 PM", "iso8601": "2015-10-10T15:12:23+0700", "jira": "2015-10-10T15:12:23.000+0700" }, "breached": true, "goalDuration": { "millis": 14400000, "friendly": "4h 240m" }, "elapsedTime": { "millis": 19380000, "friendly": "5h 323m" }, "remainingTime": { "millis": -4980000, "friendly": "-1h -83m" } } ], "ongoingCycle": { "startTime": { "epochMillis": 1444479323000, "friendly": "Today 19:15 PM", "iso8601": "2015-10-10T19:15:23+0700", "jira": "2015-10-10T19:15:23.000+0700" }, "breached": false, "paused": false, "withinCalendarHours": false, "goalDuration": { "millis": 14400000, "friendly": "4h 240m" }, "elapsedTime": { "millis": 5640000, "friendly": "1h 94m" }, "remainingTime": { "millis": 8760000, "friendly": "2h 146m" } } }
GET

Get customer request status

This method returns a list of all the statuses a customer Request has achieved. A status represents the state of an issue in its workflow. An issue can have one active status only. The list returns the status history in chronological order, most recent (current) status first.

Permissions required: Permission to view the customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.status:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required

Query parameters

start

integer

limit

integer

Responses

Returns the customer request's status history, on the specified page of the results.

application/json

PagedDTOCustomerRequestStatusDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/status
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/status' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 { "_expands": [], "size": 3, "start": 3, "limit": 3, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/1/status?start=6&limit=3", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/1/status?start=0&limit=3" }, "values": [ { "status": "Waiting for Customer", "statusDate": { "epochMillis": 1444287900000, "friendly": "Today 14:05 PM", "iso8601": "2015-10-08T14:05:00+0700", "jira": "2015-10-08T14:05:00.000+0700" } }, { "status": "Waiting for Support", "statusDate": { "epochMillis": 1444287660000, "friendly": "Today 14:01 PM", "iso8601": "2015-10-08T14:01:00+0700", "jira": "2015-10-08T14:01:00.000+0700" } }, { "status": "Waiting for Customer", "statusDate": { "epochMillis": 1444287600000, "friendly": "Today 14:00 PM", "iso8601": "2015-10-08T14:00:00+0700", "jira": "2015-10-08T14:00:00.000+0700" } } ] }
GET

Get customer transitions

This method returns a list of transitions, the workflow processes that moves a customer request from one status to another, that the user can perform on a request. Use this method to provide a user with a list if the actions they can take on a customer request.

Permissions required: Permission to view the customer request.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.status:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

issueIdOrKey

string

Required

Query parameters

start

integer

limit

integer

Responses

Returns the transitions available to the user on the customer request.

application/json

PagedDTOCustomerTransitionDTO
GET/rest/servicedeskapi/request/{issueIdOrKey}/transition
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/transition' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 { "_expands": [], "size": 2, "start": 2, "limit": 2, "isLastPage": false, "_links": { "base": "https://your-domain.atlassian.net/rest/servicedeskapi", "context": "context", "next": "https://your-domain.atlassian.net/rest/servicedeskapi/request/1/transition?start=4&limit=2", "prev": "https://your-domain.atlassian.net/rest/servicedeskapi/request/1/transition?start=0&limit=2" }, "values": [ { "id": "1", "name": "Close Request" }, { "id": "2", "name": "Escalate Request" } ] }
POST

Perform customer transition

This method performs a customer transition for a given request and transition. An optional comment can be included to provide a reason for the transition.

Permissions required: The user must be able to view the request and have the Transition Issues permission. If a comment is passed the user must have the Add Comments permission.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request.status:jira-service-management, write:request.status:jira-service-management, read:user:jira

Connect app scope requiredWRITE

Request

Path parameters

issueIdOrKey

string

Required

Request bodyapplication/json

additionalComment

AdditionalCommentDTO

id

string

Responses

Returned if the request is transitioned.

POST/rest/servicedeskapi/request/{issueIdOrKey}/transition
1 2 3 4 5 6 7 8 9 10 curl --request POST \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/transition' \ --header 'Authorization: Bearer <access_token>' \ --header 'Content-Type: application/json' \ --data '{ "additionalComment": { "body": "I have fixed the problem." }, "id": "1" }'
GET

Get feedbackExperimental

This method retrieves a feedback of a request using it's requestKey or requestId

Permissions required: User has view request permissions.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:read:servicedesk-request
Granular:read:request.feedback:jira-service-management, read:user:jira

Connect app scope requiredREAD

Request

Path parameters

requestIdOrKey

string

Required

Responses

Returns the comment.

application/json

CSATFeedbackFullDTO
GET/rest/servicedeskapi/request/{requestIdOrKey}/feedback
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{requestIdOrKey}/feedback' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 { "type": "csat", "rating": 4, "comment": { "body": "Great work!" } }
POST

Post feedbackExperimental

This method adds a feedback on an request using it's requestKey or requestId

Permissions required: User must be the reporter or an Atlassian Connect app.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request.feedback:jira-service-management, write:request.feedback:jira-service-management, read:user:jira

Connect app scope requiredWRITE

Request

Path parameters

requestIdOrKey

string

Required

Request bodyapplication/json

The feedback to be added on the request

comment

AdditionalCommentDTO

rating

integer

type

string

Responses

Returns the comment.

application/json

CSATFeedbackFullDTO
POST/rest/servicedeskapi/request/{requestIdOrKey}/feedback
1 2 3 4 5 6 7 8 9 10 11 12 curl --request POST \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{requestIdOrKey}/feedback' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "comment": { "body": "Great work!" }, "rating": 4, "type": "csat" }'
201Response
1 2 3 4 5 6 7 { "type": "csat", "rating": 4, "comment": { "body": "Great work!" } }
DEL

Delete feedbackExperimental

This method deletes the feedback of request using it's requestKey or requestId

Permissions required: User must be the reporter or an Atlassian Connect app.

Data Security Policy: Not exempt from app access rules
Scopes
ClassicRECOMMENDED:write:servicedesk-request
Granular:read:request.feedback:jira-service-management, delete:request.feedback:jira-service-management, read:user:jira

Connect app scope requiredDELETE

Request

Path parameters

requestIdOrKey

string

Required

Responses

No content.

application/json

any

DEL/rest/servicedeskapi/request/{requestIdOrKey}/feedback
1 2 3 4 curl --request DELETE \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/request/{requestIdOrKey}/feedback' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'

Rate this page: