I want to make it so that once all 8 linked tasks are closed, then for the primary linked ticket: The assignee is set back to the reported. The status is set to closed. It automatically adds a comment to the original ticket
These are automation rules that I tried to accomplish this, I know I'm off track here. Any commentary is appreciated.
(Other issue types are the primary ticket, any linked item is a task issue type)
Hi @Sierra Lindamood -- Welcome to the Atlassian Community!
Would you please clarify your scenario? Is it one of these:
The first one can be solved using the Related Issues Condition, although I find that one a bit unpredictable in results / behavior. Instead, try using the Lookup Work Items action with a JQL expression to find the linked Tasks for better control over the logic.
The second one cannot be easily solved with automation rules due to how branches work, although it is possible when there is a specific known number of linked work items.
Kind regards,
Bill
Hi @Bill Sheboy
It's 1.) GIVEN a work item, which has 8 other Tasks linked to it, and WHEN all 8 Tasks are closed THEN I need that work item to be auto closed, assignee set back to reporter, add my custom comment.
Would my Lookup Work Items action with the JQL expression need to essentially say Any Issue Type that has Task Type Linked Items and ALL Linked Items are closed...THEN....
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.
Hi @Sierra Lindamood -- No, you could use the JQL needed to select only your specific ones. For example:
project = yourProject
AND issue IN linkedIssues("{{triggerIssue.key}}")
AND issueType = Task
AND statusCategory != Done
Please note the JQL inverts the condition to check for any not completed ones, and then tests that the count found is 0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it to be expected that the JQL cannot be validated? When I put this jql in a regular search this part below, gives me this message:
("{{triggerIssue.key}}")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm
When do you want the rules to be executed : when the last subtask is closed ? Or doing a hourly check is enough ?
your first automation runs when there is a transition to Open or Reopen. It should be Done (or whatever closing status your are using)
What is your selection criteria on the scheduled automation ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What needs to happen is when the last linked item is closed, that then closes the primary ticket that all of the linked items are connected by.
The scheduled aspect was a way I thought I may have to do it, to have the system check that all the linked items are closed to then trigger the rest of what needs accomplished.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.