Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automations for Jira - Close Parent ticket if linked ticket gets closed

Sravan Duddella
Contributor
January 31, 2024

Hello Team,

How can we build an automation to close the parent ticket if the linked ticket with the link type "prevents" is closed?

Thanks.

1 answer

1 accepted

1 vote
Answer accepted
Megha Rajanna
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2024
To achieve this automation in Jira Software, you can use a combination of Jira Automation rules. Below are the steps to create an automation rule that closes the parent ticket when the linked ticket with the link type "prevents" is closed:
 
Navigate to Jira Automation:
 
Log in to your Jira instance.
Go to the project where you want to create this automation.
Create a new Automation Rule:
 
Navigate to "Jira Settings" or "Project Settings" (depending on your Jira version).
Look for "System" or "Apps" and find "Automation."
Create a new rule.
Set the Trigger:
 
Choose a trigger that suits your needs. For this case, you may want to use the "Issue transitioned" trigger. Specify the transition that represents the "Closed" status.
Define the Condition:
 
Add a condition to check if the issue has linked issues with the link type "prevents" that are closed. To do this:
Add a "Condition" and select "More" to see additional conditions.
Choose "Advanced Compare Condition."
In the JQL condition, use a JQL query similar to the following:
 
 JQL:
issue in linkedIssues("prevents") AND status = "Closed"
 
Define the Actions:
 
Add an action to close the parent ticket if the condition is met. To do this:
Add an "Action" and choose "Transition issue."
Select the transition that corresponds to the "Closed" status.
Optionally, you may want to add a comment or update fields as part of the transition.
thank you
Sravan Duddella
Contributor
February 1, 2024

The one you suggested didn't seem to work, the below worked. Thanks for giving a starting point.

Screenshot 2024-02-01 at 4.11.51 PM.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events