Hi Atlassian community,
I am hoping someone would be of assistance. For the past week I've been banging my head up against the wall. I am a project manager running a team-managed project and to make life easier I'm trying to include automation rules into the project. One of the items I am trying to do is have Task and Epic start and due dates be updated to the min/max date respectively for their child tasks and sub-tasks. I have been able to successfully have Tasks Start and Due dates be updated however, I am struggling with epic start and due dates. I am hoping someone could provide advice as to what I'm doing wrong. Any advice will be more than appreciated. Details Below:
Environment:
Rule Details:
Automation Rule:
I know my rule is a little messy, I've been struggling to debug this for a while.
Audit Log:
Hi @Brett Andrews -- Welcome to the Atlassian Community!
Adding to the suggestions from Laurie...
Are you trying to perform one or both different updates in one rule or multiple rules?
Also, you do not need to use {{#debug}} when writing a message to the audit log. That smart value / operator is used when you want a debug message for an action like Edit Issue. Please look here to learn more about that: https://support.atlassian.com/cloud-automation/docs/debug-an-automation-rule/#2.-Debugging-smart-values
Kind regards,
Bill
Hello @Brett Andrews
Welcome to the Atlassian community.
You said the rule is not working. In what way exactly is it not working?
The log indicates the Epic is being edited. Are the fields not getting updated as you expect? If they are getting updated in some way that doesn't match your expectations, exactly what update is being made?
One potential issue I can see is this step where you are trying to retrieve all the child issues of the parent where the child issue Due Date is not empty:
You should not be using {{issue.duedate}} in this filter. That is pulling into the filter the actual value of the Due Date field of the issue referenced by the branch - the Parent issue - so your query is actually saying "AND <the value in the Epic's due date field> IS NOT empty". If you want that to get all the child issues where the Due Date of the child issue is not empty then you need:
"Parent" = {{triggerIssue.epic.key}} AND duedate IS NOT empty
It also looks like you have a second Lookup Issues action and a second Edit action trying to edit the Due Date field of the parent epic in the same branch. That will overwrite the Lookup Issue results and Due Date editing from the first set.
Additionally the second Lookup Issues action doesn't appear to have a valid JQL.
And then the Lookup Issues action you are using for the child issues for the Start date is also invalid, as reported in the rule execution audit log.
Here you should be using a JQL similar to the first one you used to lookup child issues based on non-empty Due Date, with the correction I mentioned for that issue where you insert the field name "Start date" where I corrected the first JQL to say "duedate"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Brett Andrews and welcome to the Community. Your rule is using the Parent branch (typical of sub-task / Story, Task relationship). Should you be using the Epic branch instead?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laurie,
I did consider that but I was hesitant use that as I get a warning that Atlassian will be doing away with that Branch Rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.