Info |
---|
This page is for Time to SLA in Cloud Environmentthe Cloud Environment. |
This article explains how to get SLA data from a specific issue.
Requirements
Get SLA data from Jira Issues in Cloud.
Get the issue where SLA is broken.
Get the relevant date when the following:
SLA started
SLA paused
SLA resumed
SLA finished
Following are the steps to get the SLA Data using REST API
...
functions.
STEPS:
Use the REST API function
...
below for a specific issue and SLA.
Code Block |
---|
https://tts.snapbytesapps.com/api/issue-sla/{issueId}/sla/{slaId} |
...
Choose which data to retrieve based on the above Rest API
...
Call’s response:
Elapsed duration
Remaining duration
Overdue duration
Paused duration
Start date
Target date (deadline)
End date and etc
Code Block |
---|
{ "issueId": "10091", "slaId": "38", "slaName": "Time to Response", "slaValueAsDurationString": "1h", "workingCalendarName": "7x24", "slaValueType": "SLA_VALUE", "slaStartType": {}, "slaTargetType": {}, "percentageThreshold": 80, "slaStatus": "STILL", "slaValue": 3600000, "startDate": 1647419947000, "endDate": null, "deadline": 1647423547000, "elapsedDuration": 235087, "remainingDuration": 3364913, "overdueDuration": 0, "pausedDuration": 0, "elapsedPercentage": 7, "isStarted": true, "isPaused": false, "isFinished": false, "inNonWorkingHours": false, "inNonWorkingDays": false, "lastStatusDate": 1647420182087, "calendarId": "7x24", "workingDuration": 235087, "slaValueForFixedDurations": null } |
...