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?
In the documentation I found the solution!
Great, if you need further assistance, you can raise a support ticket here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.