You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
When user story is moved to “ Ready for Build” - Trigger looks at the planned start dates of all subtasks and takes the earliest of them and populates the “Planned Start Date” on the user story. Takes the last of them and populates the planned end date field on the user story. After this happens, lock these two fields from any overrides except by admin users. When automation runs, it shows no action performed.
Any suggestions or details with screenshot would be appreciated.
Thanks in advance
Hello @C S Seshagiri
The For Parent branch is trying to look at the parent of the issue that triggered the rule, which is the Story issue. If the Story has no parent issue, then the rule stops running.
Based on your description of what you want, using the For Parent branch is not the correct action.
If you want to look at the dates on the Story's subtasks, get the earliest date from them, and then put that into a field in the Story your rule needs to look like this instead. In my example I'm using the Start date field
After confirming that the trigger issue is a Story, then add a step to confirm that the trigger issue has subtasks.
Then add a step to get a list of all the subtasks for the trigger issue, where the date field is not empty.
Then check that you got some results in that list.
Then set the date field to the earliest data from the issues in the list.
Please post an image of the audit log details, showing the rule execution. That may help explain what you are observing.
And as your explanation of the rule includes more details, I suggest posting an image of the entire rule, in one image. That can be done with a screen capture or browser addon capable of scrolling page capture.
Until we see that...
You note checking subtasks, but that does not appear to be what the Lookup Issues action's JQL is doing. Instead it gathers all issues in the entire project which have a "Planned Start Date". Regardless of the story, its parent epic, etc. Is that what you wanted to do?
Next, I recommend using the min and max functions on that date field in the lookup results, rather than relying upon the JQL and using the first and last functions.