The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Fetch original custom field value in behavior

Vimalraj
Contributor
May 27, 2020

Hi,

I'm trying to add a year to a date field based on custom field value in behavior. 

For ex., 

if(issue.getCustomFieldValue(ConditionAgreed) != originalIssue.getCustomFieldValue(ConditionAgreed) {

def expirydate = getFieldByName("Expiry Date")

def expirydatevalue = expirydate.getValue() as Date

def revisedexpirydate = expirydatevalue.plus(365)

expirydate.setFormValue(revisedexpirydate.format('MM/dd/yyyy'))

}

However, I could not get it working. Please help 

Thanks

--Vimal

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events