How do I automatically set the due date on transition?

Brendan Clough January 10, 2017

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?

3 answers

1 accepted

1 vote
Answer accepted
Sam Hall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 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

TSD Group February 17, 2017

It helps! Thanks!

0 votes
nils_karlstrom January 15, 2024

You can vote for this issue about the problem: https://jira.atlassian.com/browse/JRACLOUD-82744 

0 votes
Alexander Richter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 11, 2017

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 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.

Like Amanda Culver likes this
Brendan Clough January 11, 2017

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