Prevent linking Jira work items if parent is closed

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

Summary

Learn how to keep users from linking child work items if the parent work item is closed.

Solution

Follow the steps below to create the automation rule:

  1. Create a New Automation Rule:

    • Go to Project settings and navigate to the "Automation" section.

    • Click on "Create Rule" to start a new automation rule.

  2. Set the Trigger:

    • Use the "Work Item Linked" trigger to detect when a work item is being linked to another issue.

  3. Add a Condition:

    • Add a condition to check if the parent work item is in the "Closed" status. You can use the "Work Item Fields Condition" for this.

    • Set the condition to check if the "Status" field of the parent work item equals "Closed".

  4. Add an Action:

    • If the condition is met (for example, the parent work item is closed), you can unlink work item or send an alert to inform the user that linking is not allowed.

  5. Save and Enable the Rule:

    • Save your rule and enable it to ensure it starts working immediately.

Updated on May 23, 2025

Still need help?

The Atlassian Community is here for you.