Hi,
The following script in Script Runner used to work, but after updating Jira and Script Runner, code does not work. What changes should I make in the script?
if((long)timeToResolution.getCompleteSLAData().get(0).getRemainingTime()>0)
Regards
GG
Hi @GG My name is Habib -
`getCompleteSLAData()` method:```javaList<SLAData> slaDataList = timeToResolution.getCompleteSLAData();if (slaDataList != null && !slaDataList.isEmpty()) { long remainingTime = slaDataList.get(0).getRemainingTime(); if (remainingTime > 0) { // Do something }}```
Thanks for your response Habib.
I will check it and let you know the result.
It looks like you're new here. Sign in or register to get started.