Forums

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

Add Due Date by Default using automation

Calvin Tanudjaja September 17, 2020

Hello All,

 

I want to add due date on the new created task based on the start date of the Epic using automation.

 

I have tried the settings by JIRA to copy due date from Epic due date but seems even using this there is an error that I encountered.

Edit Issue.png2020-09-17 18_31_59-Project automation - Jira.png

For your information, I have set due date as a field in both epic and task type.

 

The next thing is to assign the due date from issue.parent.customfield_10015 (which is from parent Start Date) using JQL something like

{{issue.parent.customfield_10015.plusBusinessDays(5)}}

 

If you have succeed previously doing this, please let me know

1 answer

1 accepted

2 votes
Answer accepted
Rudy Holtkamp
Community Champion
September 17, 2020

Hi @Calvin Tanudjaja ,

Here you have the rule that copies the due date of an epic to a child when the child is created:

image.pngI've added the related issue condition to see if the issue is related to an epic.

Rudy Holtkamp
Community Champion
September 17, 2020

And if you want to add 5 business days use:

{{triggerIssue.epic.due date.plusBusinessDays(5)}}

 

image.png

Like # people like this
Calvin Tanudjaja September 17, 2020

Thank you for the prompt reply!

the problem has been solved using your automation, Just realized that the issue created is a triggerIssue.

The thing that I am not understand is why I need if Epic Exists, since if it does exist it will continue the copy due date task, if does not is just not copying the due date to the child.

Rudy Holtkamp
Community Champion
September 17, 2020

Otherwise the execution produces an error when no value is found for the smart value or it might overwrite and empty an already set value for due date. Just cover the basis

Happy to help

Suggest an answer

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

Atlassian Community Events