I would like the due date of an issue to be automatically set to now() via a post function - ie, any issue created today are due today.
I believe that the way to do this is via the script runner Plugin and to run a Custom Script Post Function from the Create state but the scripts that I have found online do not work.
Can anyone help me with what script I would use to achieve this.
There are some alternatives:
If you are sticking with ScriptRunner for JIRA, did you try the following?:
issue.setDueDate(new Timestamp((new Date()).time))
Hope this helps.
Hi there! Shannon from Statuspage here. 👋 With Cyber Monday quickly approaching, we're looking to hear from Atlassian customers – specifically from teams who touch incident response li...
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