Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Setting a Duew Date based on the value of a number field

Brian Taylor
Contributor
October 14, 2024

I have a use case where I want to clone an issue, but I want to set the Due Date based on the value of another field. 

I want to have automation so that when an issue is placed into Done, the issue is cloned with a due date + the value of a number field. 

 

Example - Renewal Field = 6 so the Clone would have a new issue with a due date + 6 months. 

 

Is this possible?

 

2 answers

0 votes
Luka Hummel - codefortynine
Atlassian Partner
October 17, 2024

Hi @Brian Taylor

If you want to have more advanced cloning functionality, you can try our app Deep Clone for Jira. With the Field Editor feature, you can set custom field values while cloning, including date fields like the Due Date. You can also use Jira expressions to set the Due Date based on a custom field value. Read here on how to calculate the new Due Date with Jira expressions.

You can also configure this Deep Clone as a post function in your workflow and have the clone triggered when the issue transitions to Done without Jira Automations.

0 votes
Shawn Doyle - ReleaseTEAM
Community Champion
October 14, 2024

Hi @Brian Taylor 

It is possible.  You'll want to trigger off of your "Done" transition, then clone, edit the clone and update the Due Date based off the field + 6 months.

I suggest you play with the Automation on a test project, see how far you get, and post any problems you may have here and we can guide you.  Good chance you can get this done on your own.

You will need to use smart values.

https://support.atlassian.com/cloud-automation/docs/smart-values-in-confluence-automation/

Pay specific attention to the 'date math'

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events