Plugin Time to SLA customfield value in seconds

Dante Labate September 27, 2018

Is it possible to create a custom field and every time the page is reloaded (F5), does this custom field display the current value of the time that the SLA is running (in seconds)?

I know that by querying the API of this plugin I get this information (workingDurationAsSeconds), but I need this information to be on the JIRA screen

 

example of return of plugin API

TTS
[
{
"timePerformed": 1538052213000,
"slaValueType": "SLA_VALUE",
"workingDuration": "4 hours, 52 minutes, 44 seconds",
"workingDurationAsSeconds": 17564,
"pausedDuration": "0",
"pausedDurationAsSeconds": 0,
"slaValueAsMinutes": 60,
"slaValueAsTimeString": "1h",
"status": "EXCEED",
"breachString": "3 hours, 52 minutes, 44 seconds",
"breachAsSeconds": 13964,
"originDate": 1538052213000,
"statusDate": 1538052215000,
"expectedTargetDate": 1538055813000,
"negotiationDateProvidedByCustomField": false,
"workingCalendar": "7x24",
"slaName": "SLA Fix Total Fault 1h"
}

 

I was thinking of a listener script that would query the information through the API and would save the information in the custom field.

Can someone help me?
Would that work?
How would this script (get api via groovy) be?

 

 

1 answer

1 accepted

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 27, 2018

Great, if you need further assistance, you can raise a support ticket here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events