Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to add days to a custom field based on the date of another custom field?


I have tried this but an getting an error while parsing additional fields not valid json

def EstimateDeliveryDateField = getFieldByName("Estimate Delivery Date") // Grab the Estimate Delivery Date

def ICAEndDate = getFieldByIName("ICA End Date") //Grab the ICA End Date

double dDays = 7 // Defined number of days

if (ICAEndDateField.value != null) {ICAEndDate.setFormValue(new ate().plus(dDays.toInteger()).format("dd/MMM/yy hh:mm a"))


1 answer

1 accepted

1 vote
Answer accepted

We have figured it out so now it works.  Here is what we did. We changed the brackets to quotations; {{"Estimate Delivery Date".plusbusinessdays(10)}} Once we did that, it worked like a charm!


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Feedback & Announcements

Announcing Data Residency for Standard and Premium licenses

Update: We have just released data residency for Austra...

6,671 views 16 46
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you