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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Kind regards,
Bill
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.
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.