Manage status updates for linked work items in Jira Cloud
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
This article instructs you on how to create an automation rule to update a linked work item's status when its associated work item's status changes.
Example scenario
When a work item's status is marked from Working to Done, the automation rule should check for linked work items with the relation "blocks." If a linked work item exists, it should be transitioned to the Done status only if the current status is Working.
Solution
The automation rule could be setup by multiple approaches. Here is one of the approaches for this use case:
Trigger: Work item transitioned: From "Working" to "Done"
Branch rule: Linked work item
Link type: blocks
Condition: If status equals to Working
Action: Transition work item to Resolved
Here is the automation rule configuration file:
{"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.
Was this helpful?