How to automatically transition parent linked issue when all child linked issues in the same status using Automation
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
How to use Automation to transition the parent linked issue when all child linked issues are transitioned to the same status. This can come in handy for JIRA Service Management project as it didn't support "Sub-task" issue type for customers account visibility in the customer portal. On top of that, when you want to transition an issue once all the linked issues are moved to Done/Resolved/Completed status.
Solution
Create a new Automation rule
In the example below, the expected result is we transition the parent linked issue to In Progress, once all child linked issues are transitioned to Done. You can replace these statuses with any status available to you. In this example, the "Task created" is the Outward Issue linked description , and the "Task created from" is the Inward issue linked description. Can refer to this page for more information about issue linked.
Set the trigger
Add an IF condition to check if there are issues linked.
Under the link types, please select the one specific to your use case.
Use Lookup action to find all linked issues.
Use the following JQL, please replace the Task Created from with the Link types you selected in the previous step.
issue in linkedIssues({{triggerissue.key}},"Task created from")
Use an IF condition to check if the other linked issues are marked DONE
Use the following JQL:
issue in linkedIssues({{lookupIssues}})