What have you tried thus far to solve this need?
If you have a rule and it is not working as expected, context is important for the community to help. Please post the following:
If you have not started a rule, I encourage you to try to do so. The Atlassian Community is a place for people to learn and collaborate with each other. It is not a free labor pool to implement requests upon demand. If you frequently need help creating automation rules, I recommend contacting your Jira Site Admin for support.
To get you started on creating your rule, please refer to these documentation and example sources:
Kind regards,
Bill
Hello, Bill.
I'll rephrase my question.
I need to create an automation in Jira to update the status of a parent issue with the status of the linked issue that has not had its status updated for the longest time.
I'm having trouble adding an action that determines which linked issue is the one that hasn't been updated for the longest time and how to use that status to update the parent link.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First, I will try to answer your question, and then try to clarify a bit...
The statusCategoryChangeDate only gets updated when the Status Category changes, and not necessarily for each change of the Status. Thus when you have multiple Status values with a Category value of "In Progress", that date may not be what you want.
If you truly want the issue with the earliest statusCategoryChangeDate for a set of issues, I recommend using the Lookup Issues action with JQL to find it. For example, the JQL could be:
project = myProject
AND statusCategory = "In Progress"
ORDER BY statusCategoryChangedDate ASC
And so the issue with the earliest date would be {{lookupIssues.first.key}} and its Status value would be {{lookupIssues.first.status}}
What problem are you trying to solve? That is, "why do this?"
Perhaps you are trying align the parent Status with the child issues somehow, such as:
GIVEN a parent issue has child issues
AND the parent issue is in the "To Do" status
WHEN the first child issue transitions to "In Progress"
THEN transition the parent issue to "In Progress"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the organization of our demands, a parent issue can have several child issues. In our worflow, we use several different statuses in the “In Progress” category. I need to keep the parent issue with the same status as the child issue that hasn't had its status updated for the longest time.
Now
Parent (status C)
child1 (status D)
child2 (status E)
child3 (status G)
child4 (status C)
After
Parent (status D)
child1 (status D)
child2 (status K)
child3 (status H)
child4 (status J)
I can't get the status of the child issue that has had the status the longest without being updated.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I recommend inverting this to update the parent when children transition:
This approach will be easier than the alternative:
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.