Hello Atlassian community!
I have a semi-failing automation with no clear explanation.
To set the scene here: I am attempting to create a rule to auto populate tasks based on epic with tasks following sequentially from the epic due date. This is sort of working.... it will sequence the first 7 tasks in the correct order, but will not complete the remaining 4. The Epic still displays the proper duration as if these were included though. Attached are some screenshots of the timeline and an example of how I configured the automation. I have tested the automation twice and the exact same problem happens
Any ideas about why this is only sort of working?
Hi @Sophia Skinner -- Welcome to the Atlassian Community!
Without seeing your complete rule (in a single image) and the audit log details, I have some questions which may help explain what you are seeing:
Kind regards,
Bill
Hello Bill, thank you for following up!
1. no branching see photo below
2. Number was wrong in my intial text. there are 16 total tasks. the first 12 populate and the last 4 do not.
3. same as above
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for that information.
Is the symptom the last four tasks added have incorrect values for the Due Date and Start Date, or something else?
If the dates are incorrect, please show an example of the values used to set the Due Data and Start Date values. I want to see the expressions, so please post those as text in your response (rather than as a screen image).
And, have you reviewed the Create Work Item actions for those four to confirm their expressions are correct?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the help @Bill Sheboy
The last four tickets are populated with the following information as part of their automation:
Summary: TRR MEETING
Due Date: {{triggerIssue.dueDate.minusBusinessDays(20}}
Start Date: {{triggerIssue.dueDate.minusBusinessDays(21)}}
Parent: Trigger work item
As an example from another ticket where the automation does work:
Summary: Stakeholder TRR Documentation Development
Due Date: {{triggerIssue.dueDate.minusBusinessDays(51)}}
Start Date: {{triggerIssue.dueDate.minusBusinessDays(56)}}
Parent: Trigger work item
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, and I see a few things to check:
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.
Would you provide more information about how to add the Re-fetch Work Item Data immediately after the Work Item Created trigger?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am glad to learn adding the parentheses solved this!
Regarding the re-fetch, that is this action: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Re-fetch-issue-data
The change to the rule would be this (in bold below):
This will reduce the risk of errors for the condition and copying of fields in the other actions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It was the parenthesis!! Thank you so much for that catch. I accidentally duplicated that error for the last 4 tickets. They are now populated. Really appreciate your help.
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.