...
Method |
|
|---|---|
URL |
|
Sample Result | |||
|---|---|---|---|
|
Origin and target dates are custom fields
| Code Block |
|---|
{
"description":"Description of the SLA definition",
"workflowName":"Workflow name",
"slaStartDateField":10900, // date custom field Id
"slaEndDateField":10901, // date custom field Id
"slaValueAsTimeString":"3h",
"jqlString":"",
"calendarId":-1, // -1 for 7x24, or calendarId
"multipleTransition":true,
"onlyFirstExecution":false
} |
Possible Responses | |||
|---|---|---|---|
|
With negotiation time
|
Possible Responses | |||
|---|---|---|---|
|
With pauses
POST Data | |||||||||||||
|
Possible Responses | |||
|---|---|---|---|
|
...
5. Bulk saving SLA definitions
Method |
|
|---|---|
URL |
|
Sample Result | |||||
|---|---|---|---|---|---|
|
An SLA with negotiation time and another one with the custom origin and target dates
POST Data | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Possible Responses | |||||
|---|---|---|---|---|---|
|
...
6. Showing SLA definition
Method |
|
|---|---|
URL |
|
Possible Responses | |||||||||
|---|---|---|---|---|---|---|---|---|---|
|
...
7. Searching SLA definition
Method |
|
|---|---|
URL |
|
Identifiers for search operation | |
|---|---|
-description | Example description=Urgent |
-workflowName | Example workflowName=TTS Project Workflow |
-priorityId | Example priorityId=1 |
-originStatusId | Example originStatusId=3 |
-targetStatusId | Example targetStatusId=5 |
-slaStartDateField | Example slaStartDateField=1 |
-slaEndDateField | Example slaEndDateField=5 |
-multipleTransition | Example multipleTransition=true |
-onlyFirstExecution | Example onlyFirstExecution=false |
-slaValueAsTimeString | Example slaValueAsTimeString=20m |
-slaNegotiationDateFieldId | Example slaNegotiationDateFieldId=11000 |
-slaNegotiationDateIssueFieldKey | Example slaNegotiationDateIssueFieldKey=duedate |
-workingTimeId | Example workingTimeId=3 |
-jqlString | Example jqlString=issuetype = Improvement |
Responses for: /rest/tts-api/latest/sla/search | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Responses for: /rest/tts-api/latest/sla/search?description=Urgent | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Responses for: /rest/tts-api/latest/sla/search?description=Urgent&slaValueAsTimeString=20m | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
8. Listing all SLA definitions
Method |
|
|---|---|
URL |
|
Possible Response | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
9. Updating SLA definition
Method |
|
|---|---|
URL |
|
POST Data | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Possible Responses | |||
|---|---|---|---|
|
Updating with Pauses | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Possible Responses | |||
|---|---|---|---|
|
...
10. Deleting SLA definition
Method |
|
|---|---|
URL |
|
Possible Responses | ||
|---|---|---|
|
...
11. Get SLA details for an issue
Method |
|
|---|---|
URL |
|
Possible query parameters | |
|---|---|
-slaId | Example slaId=26 |
Error Response | ||
|---|---|---|
|
SLA ID is given | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
No SLA ID is given | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
12. Get SLA details for issues based on JQL
Method |
|
|---|---|
URL |
|
Possible query parameters | |
|---|---|
-slaId | [Optional] sla filtering parameter Example slaId=26 |
-jql | Jql to filter issues that you want to get SLA details. Example jql=key in (ABC-34,ABC-35) |
-index | the The index of a result whose page you want the pager to start at. |
-max | the The maximum number of results in a page (cannot be greater than 100). |
Response
| Notetip |
|---|
For To address performance and memory issuesconcerns, we support implement pagination . Max 100 issues are returned for a single page, but you can navigate with the parameters returned from RESTin our system. Each page can return a maximum of 100 issues. However, you can easily navigate through the pages using the parameters provided by the REST API. |
Result | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
13. Get 'Time to SLA' field for the issue
Method |
|
|---|---|
URL |
|
Possible Responses |
|---|
|
Possible Responses | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
14. Get 'SLA Overview' data for the issue
Method |
|
|---|---|
URL |
|
Possible Responses | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
15. Generating SLA data for existing issues
Method |
|
|---|---|
URL |
|
Possible Responses | ||||
|---|---|---|---|---|
|
...
16. Resetting SLA
Method |
|
|---|---|
URL |
|
POST form param | "date=timeAsMillis" (as long, time millis, optional, . if not set, current time will be used) |
| Info |
|---|
{issue-id} required parameter where {sla-id} is optional. If {sla-id} is not provided, then all SLAs for the issue will be reset. |
Possible Responses | |||||
|---|---|---|---|---|---|
|
...
15. Get SLA History
Method |
|
|---|---|
URL |
|