It is indeed possible, but you need to look at the Java documentation for the Date class (your snippet above is incorrect).
And you should see an error message in Atlassian-Jira.log right after displaying an issue that should show your calculated field.
Finally, you can use Java Date methods to get the current date as well as to add to a date.
This works in my case: due date (=current date) + 9 days.
import java.text.SimpleDateFormat; import java.util.Date; SimpleDateFormat sdf = new SimpleDateFormat("dd/MMM/yy"); Date dt = new Date(); long time = dt.getTime()+9*24*60*60*1000; String duedate = sdf.format(time);
If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot