Much like the automation rule where an Epic will automatically update when all of it's Stories are updated to DONE, I want to do the same with Stories and their linked Tasks.
Hi @Rich Evers
Welcome to the community.
You might wanna get more conditional (I know I would), but the basic version of the automation would be something like:
Not sure how I would need to get more conditional, but I did exactly the above and it didn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rich Evers -- Welcome to the Atlassian Community!
To confirm your use case, which do you mean:
Case #1 can be done in one automation rule, triggered on the sub-task changing. There may be an example in the template library like this.
Case #2 probably can be done in one rule, triggered on a schedule (for the story) or from the linked issue, probably using branches, lookup issues, and created variables. It definitely and safely can be done in two rules, with the original linked issue triggering another rule to get the story to check its linked issues.
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.
Good point @Bill Sheboy
My example is all about linked issues @Rich Evers but either/both can be done.
Other complexities may arise from different workflows and or different "Done" status categories within...resolution codes (if required) etc. But all very doable.
let us know ow you get on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Case #2. When all of the linked Tasks of a Story are updated to DONE, automatically update Story to Done. I've tried retrofitting the rule that Jira has pre-defined for the parent-child relationship with Epics and Stories, replacing "parents" and "childs" with "linked" but for whatever reason is not working out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For Case#2. Can you show us the rule and any info in the audit logs?
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.
The "For stories (or other issues in Epic)" branch only works if the trigger issue is an Epic.
Try a linked issues branch
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.
Rich, based on your rule and Curt's ideas, does your rule now look like this? Note I made a substitution in the JQL to check statusCategory instead of status.
Please note: given the possible slowness of this rule, I still think it might cause a run-away, looping condition. Perhaps the 2-rule approach will cause the hard-stop to prevent this, but it would require some assumptions you have not stated, such as the number and type of linked issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't have the options to build it that way. It will only let me do Types: All link types and that is it. From there it is only allowing me to chose a condition. See below:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try changing the Condition to "all match specified JQL" to see that option.
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.
I've tried putting in various things here and it has errored out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What have you tried putting in the "matching JQL" field? What is happening when it errors out?
Please try:
statusCategory = Done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did what suggested above, and it didn't work. It did not give me an error message, though. Thanks for the attempt, though!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Rich.
Just to confirm, would you please post images of your current rule and an audit log details from an attempted execution? That may reveal something I am not seeing from trying to help, one rule component at a time. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can't seem to figure out what project restriction may be prohibiting the results I'm seeking.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for those images. Okay...
What is the current status of TESTRICH-30?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
30 did not update to done. The link "how" I guess, are all labeled as "relates to." I guess another question, is that why can't we have a parent-child relationship with stories and epics, like we do epics and stories? That is ultimately what I'm trying to do. Am I going about this the correct way?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For epics and stories/tasks/bugs, the relationships are easier:
My understanding was you were evaluating any links, and not just epic/children. Was I incorrect?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct, I think. All I want to see happen is that when all the tasks are updated to DONE that are assigned to a specific story, the said story will update to DONE as well.
The hard part is that I'm not a tech-y software guy, so all of this language and how the software works is very foreign. I just want to it work and do things that I want it to do. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Let's confirm how you use issues In Jira as that will confirm we are talking about the same thing. In Jira, you can relate issues with a hierarchy and/or linked issues:
Hierarchy of issues
Linked issues
Which of these matches what you are doing: hierarchy or linked?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Trying to link tasks to stories because there is no ability to create a parent-child relationship between the two. Epics and stories have the parent-child relationship already pre-built in the software.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks!
Next, can any single Task be linked to multiple Stories? (Note there is no restriction to this in Jira so this would just be manually enforced.)
If so, what you describe cannot be done with automation rules. The act of checking from Task --> Story --> Task --> Story... could create a loop.
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.
Okay, then let's try this one for Task to Story to Tasks, using lookup issues to check the counts, step by step
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am looking to create the same automation as requested originally, wondering if this worked? and what i need to do the following below.
looking for the following:
when all Tasks in Project 1 are set to status DONE, i want the user story that they are linked to in with Project 2 to be set to Ready to Test and I want the assignee updated at the same time. (hierarchy being used is User story ==> multiple tasks to complete the user story)
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.