Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×I am try to write an automation to update epic Due Dates. It seems like every combination of writing Due Date in the lookup issues function does not work. I've tried:
{{lookupIssues.first.Due Date}}
{{lookupIssues.first.Duedate}}
{{lookupIssues.first.DueDate}}
{{lookupIssues.first.duedate}}
{{lookupIssues.first.due date}}
Nothing works! Below is a link of what I'm attempting to replicate. At the end, someone mentions the solution is to use Duedate but that does not work for me. I'm on Cloud, very much at a loss..
Hi @Nick Brotherton -- Welcome to the Atlassian Community!
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
The correct smart value for the Due Date field is {{issue.duedate}} or this expression for the first issue in a Lookup Issues result: {{lookupIssues.first.duedate}} And you may identify the correct smart values for a field using this how-to article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
But that does not seem like what you wanted...
If you want the earliest value that would be {{lookupIssues.duedate.min}} or the latest value would be {{lookupIssues.duedate.max}}
What value do you want in the Epic, based upon its child issues?
Kind regards,
Bill
It's essentially exactly what is mentioned in the link.. if I use min/max, is there a better usecase for the lookup issue? Here is the automation. I'll also try put the duedate as lower case
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for that information, Nick.
What do you want the rule to do with the Epic's date fields when there are no values found in the child issues? For example, should it clear the date, leave it as is, or something else?
Regarding min / max, for your scenario you are apparently trying to find the earliest Start Date and the latest Due Date. Is that correct?
If so and we assume there is at least one issue with a non-empty Start Date and Due date, you only need to use one Lookup Issues action:
the earliest Start Date would be this: {{lookupIssues.Start date.min}}
the latest Due Date would be this: {{lookupIssues.duedate.max}}
Also please note: the way your rule is written, the processing will stop when a condition is not met. And so if there are no issues found with a non-empty Start Date, logic for setting the Due Date will not happen.
The if / else condition normally helps for such scenarios, but your rule is branching to the parent and that type of condition is not possible inside a branch. There are two possible solutions: split this into two rules or use the if / else conditions first with a branch inside.
I recommend splitting this into two rules to handle the different cases, subject to the answer to how to handle empty date fields. Then your original rule could mostly remain unchanged.
Test that rule, then clone the rule to make one for the Due Date field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.