Update linked issues status when the Linked issue status is changed

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

This knowledge-based article provides guidance on how to create an automation rule for updating the status of a linked issue when the associate linked issue status is changed. The example provided for illustration uses certain issue types and issue link relation names, but you can adjust them according to your specific needs.

Scenario example: When the status of issue A is marked as "Done" from "Working", the automation rule should check if there are any linked issues with the relation "blocks". If a linked issue exists then transition the issue to "Done" status only if the current status is "Working".

Solution

The automation rule could be setup by multiple approaches, here is one of the approach for this use case :

Trigger: Issue transitioned: From "Working" to "Done"

Branch rule: Linked issue

Link type: blocks

Condition: If Status equals to "Working"

Action: Transition issue to "Resolved"

Here is the automation rule configuration file:

1 {"cloud":true,"rules":[{"id":15255285,"clientKey":"fcb18f79-08d6-35bd-9c47-b1e204f45645","name":"Update status of the linked issue to resolved","state":"ENABLED","description":"","authorAccountId":"6362284b01c2ff842c19db70","actor":{"type":"ACCOUNT_ID","value":"557058:f58131cb-b67d-43c7-b30d-6b58d40bd077"},"created":1696913681196,"updated":1696913681196,"trigger":{"id":"333522627","component":"TRIGGER","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.event.trigger:transitioned","value":{"eventKey":"jira:issue_updated","issueEvent":"issue_generic","fromStatus":[{"type":"NAME","value":"Working"}],"toStatus":[{"type":"NAME","value":"Resolved"}]},"children":[],"conditions":[],"connectionId":null},"components":[{"id":"333522628","component":"BRANCH","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.related","value":{"relatedType":"linked","jql":"","linkTypes":["blocks"],"onlyUpdatedIssues":false,"similarityLimit":40,"compareValue":0},"children":[{"id":"333522629","component":"CONDITION","parentId":"333522628","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"ID","value":"status"},"selectedFieldType":"status","comparison":"EQUALS","compareValue":{"type":"NAME","modifier":null,"value":"Working","multiValue":false,"source":null}},"children":[],"conditions":[],"connectionId":null},{"id":"333522630","component":"ACTION","parentId":"333522628","conditionParentId":null,"schemaVersion":10,"type":"jira.issue.transition","value":{"operations":[],"advancedFields":null,"sendNotifications":true,"destinationStatus":{"type":"NAME","value":"Resolved"},"transitionMatch":""},"children":[],"conditions":[],"connectionId":null}],"conditions":[],"connectionId":null}],"canOtherRuleTrigger":false,"notifyOnError":"FIRSTERROR","projects":[],"labels":[],"tags":[],"ruleScope":{"resources":["ari:cloud:jira::site/7bbd0f61-9cf7-46a8-a02c-5d635b174db8"]},"ruleHome":{"ruleLifeCycleHome":{"locationARI":"ari:cloud:jira-servicedesk::site/7bbd0f61-9cf7-46a8-a02c-5d635b174db8"},"ruleBillingHome":{"locationARI":"ari:cloud:jira-servicedesk::site/7bbd0f61-9cf7-46a8-a02c-5d635b174db8"}},"writeAccessType":"UNRESTRICTED","collaborators":[],"billingType":"NORMAL"}]}

NOTE

Copy the above JSON code in a file and save it as .json. Import it in JIRA to import the above rule.

Updated on May 31, 2024

Still need help?

The Atlassian Community is here for you.