I'm trying to update the parent actual start date to the earliest value of the sprints of the child stories. Changing the status on the children do not seem to be triggering anything.
Hello @Brian Gauthier
Can you tell a little bit more on what you are trying to do, especially the trigger part.. Is below the correct understanding:
When an issue's "Actual Start" date changes, you want to find all stories of the parent, find earliest "Sprint start date" among them, and assign that date as "Actual Start" of the parent?
Cause your rule right now is not doing that, so please clarify the requirement..
That is the behavior that I'm aiming for - correct. Could you please share what is needed to make that happen?
Hi @Brian Gauthier
Do you mean the rule is not triggering or that the value is not updating as expected?
If it is not updating as expected...
Smart values are name, spacing, and case-sensitive. When an unknown / incorrect smart value is used, it becomes null and often fails silently (depending upon the rule structure).
The smart value for the trigger issue is:
{{triggerIssue}}
Perhaps try changing your rule to use that in the edit issue action.
Kind regards,Bill
If what I have gathered from requirement, below are my suggestions:
After your trigger = Value changes for "Actual start", you then need to find all issues of the parent like below:
- lookupIssues with JQL = parent = {{issue.parent}}
Then below smart value will give you a list of all Sprint start dates:
{{#lookupIssues}}{{#sprint}}{{startDate.jiraDate}}, {{/}}{{/}}
You then have to create a variable (mydate) andy you assign above smart value.
This variable is a string and it has trailing comma, so we can remove this trailing value and split it and find the "first" date in the list like below..
{{mydate.substringBeforeLast(",").split(",").first}}
Then, you do your branch on your Parent like you have and assign the date to your field.
Please see below for screenshot, let me know if questions..
BTW, could you please revise your post heading, current heading is not reflective of the ask.
Maybe something like: "Update Parent with the earliest Sprint date of its children" or along those lines so its useful for folks in the future.
It looks like you're new here. Sign in or register to get started.