You could try something like:
dateA = issue.get("customfield_10000"); dateB = issue.get("customfield_10001"); if (dateA==null && dateB==null) return null; if (dateA==null || dateB!=null && dateA.after(dateB)) return org.apache.commons.lang.time.DateUtils.addDays(dateB, 10); return org.apache.commons.lang.time.DateUtils.addDays(dateA, 10);
where customfield_10000 and customfield_10001 are the field IDs of your two Date fields.
Note that I haven't tried the formula so it might be slightly wrong.
You can check atlassian-jira.log for ERRORs (look for com.innovalog).
Thanks for support David.
I tried the formula, and in my case the result of the the calculated date field is "In X days", which is okay for the moment.
I thaught we can get something like New date = date + 10 days. So new date = 01/11/2013 + 10 days = 11/11/2013
I will retry this later
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs