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.
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
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