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:```java
List<SLAData> slaDataList = timeToResolution.getCompleteSLAData();
if (slaDataList != null && !slaDataList.isEmpty()) {
long remainingTime = slaDataList.get(0).getRemainingTime();
if (remainingTime > 0) {
// Do something
}
}
```
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.