How do I automatically set the due date on transition?

Trying to set up a workflow so that as it transitions between two statuses it automatically updates the tasks due date. Is this possible without script runner?

2 answers

1 accepted

1 vote
Accepted answer
Sam Hall Community Champion Jan 11, 2017

One possible workaround to do this in JIRA Cloud:

  • Raise a support request to ask Atlassian to enable the JIRA Suite Utilities add-on (see https://answers.atlassian.com/questions/44081096).
  • This will give you post-functions called Update Issue Custom Field and Copy Value From Other Field.
  • The Update Issue Custom Field post-function doesn't allow update of "Due Date", because it is a system field not a custom field, so...
  • Create a custom field called "Temporary Date" and update that, then use Copy Value From Other Field to copy the value to "Due Date". So you end up post-functions something like the example below:

    cloud-due-date-update.jpg

Information on the Update Issue Custom Field post-function is here, which is where I found to use %%CURRENT_DATETIME%% to set current date. Not sure how flexible it will be regarding setting fixed dates or doing calculations. Probably needs a bit of experimentation to see what is possiblehttps://jsutil.atlassian.net/wiki/display/JSUTIL/JIRA+Suite+Utilities+Workflow+Post-Functions#JIRASuiteUtilitiesWorkflowPost-Functions-UpdateIssueCustomFieldPost-Function

Hope this is useful.

Sam

It helps! Thanks!

do you have the "Copy a parsed text to a field" post function. Not sure if it is standard or from an AddOn.

With that you can change the due date within the transition.

Sam Hall Community Champion Jan 11, 2017

I think the "Copy a parsed text to a field" post function comes from the JIRA Workflow Toolbox add-on, which is server only sadly.

Yeah i think either developing my own add-in, or going down the scriptrunner route is the only option. Oh well...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

185 views 3 6
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you