Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Value of Time to resolution field in Behaviour Script

Jyoti Verma
Contributor
August 19, 2020

Hi Experts

I have a requirement where I need to put a validation of one of the Custom field change on issue - now I need to check "Time to resolution" value whether it has crossed the SLA or not - based on this value only I need to allow user to change value of that field.

I am writing a Behaviour on that custom field - but unable to get value of Time to resolution in script - it shows Null to me when I print- I am using below:

def sla = getFieldByName("Time to resolution")
def slatime = getFieldById("customfield_10120")
def slaval = slatime.getValue()
System.out.println("SLA::: " + slaval)

 

Please suggest,

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events