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
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events