Automation - Inherit a date from trigger issue and add X days

caglad
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.
June 28, 2024

 

 

 

 

We are building an automation rule that takes an epic and uses different types of dates from that to make it a due date on the "standard issue type" children of the epic..

Since I dont have all dates captured in the epic, I want to be able to do something like "configuration due date" plus 5 days. I know if I just want to NOT pull from the trigger date I could do something like 

now.plusBusinessDays(5)

My question is how can I do date on the new issue by saying tiggerissue.configurationduedate-5days. Is this even possible.

1 answer

1 accepted

2 votes
Answer accepted
Bill Sheboy
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.
June 28, 2024

Hi @caglad 

Yes, that is possible.

You will want to use the {{triggerIssue}} smart value as a start: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--triggerIssue--

Then you need to identify the correct smart value (or custom field id) for your field: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

And finally, use the correct function and units of measure to adjust the date value: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-minus-unit---

 

If that does not help, please post images of the complete rule, the action where you are performing the date adjustment, and of the audit log details showing the rule execution.  Those will provide context for the community to make suggestions.

Kind regards,
Bill

caglad
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.
June 28, 2024

So, it would be....

{{triggerIssue.customfield_10226.plusbusinessDays(5)}}

caglad
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.
June 28, 2024

THANK YOU!!! that worked! should know to ask before spending 2 hours...

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