Hi Team,
I’m trying to set up an automation rule in Jira to streamline the linking of related tickets. Here's what I want to achieve:
Could you guide me through creating such an automation? If you have any examples or suggestions, I’d appreciate it!
Thanks,
Ravi Chand
Hello @Ravi Chand
Welcome to the Atlassian community.
Are you using Jira Data Center or Jira Cloud? If Jira DC, what version.
What action do you want to use to trigger the rule to create the additional links?
Does it matter what link types already exist?
What type of link type do you want to use in the new link you create?
Jira Platform:
Trigger for Rule:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried to build this automation? Show us what you have so far?
If you are new to Automation Rule you can find free, on-demand training at https://university.atlassian.com
The basic structure would be:
TRIGGER: Issue Linked
In this trigger you can specify the type of link you care about. If you only care about a new issue link be created with the "relates to" link (versus, for example, the "depends on" link), then you can specify that in this trigger.
The Issue Linked trigger is unique in that it involves two issues. One issue is considered the trigger issue and the other is considered the "destination" issue.
If you linked are view ABC-1 and from there create a "relates to" link to ABC-2, then ABC-2 is considered the trigger issue and ABC-1 is considered the "destination" issue. For the next step we have to get all the issue linked to ABC-2 (the trigger issue) so we can link those to ABC-1. We'll use a branch so that we can then take action against each issue found.
FOR EACH: Branch rule/Related Issue
Select the Linked Issues option.
Select the "relates to" Link Type
The tells the rule to get all the issues that are linked to ABC-2 with the "relates to" link.
The next step is to link ABC-1 to all the issues you just found linked to ABC-2. You would do that with Link Issues action:
ACTION: Link Issues
"relates to" {{destinationIssue.key}}
The value in the curly braces is a Smart Value. It is a special smart value available because of the Issue Linked trigger. You'll have to type that in to the box that displays "Trigger issue".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.