Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Link type issue automation

Andrea Robbins
Contributor
January 17, 2022

Hi everyone! Is there an automation to ensure that issues are only linked once with one link type?

For example, I have a duplicate automation rule so that issues with a similar description are linked with the "might relate to" link type, but it is also picking up issues that are already linked with other linked types like "split from", "relates to", and others. I want to avoid this. 

 

Thanks in advance!

3 answers

1 accepted

2 votes
Answer accepted
Simmo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 17, 2022

@Andrea Robbins, there isn't anything in Jira Automation that can ensure this. The best approach are to put the checks into your rules before they do the linking. Automation cannot stop links happening but they can detect duplicates.

Your best bet is to solve this by doing a check up front before you link them.

Andrea Robbins
Contributor
January 18, 2022

what are your thoughts on the automation shared below on my other comment below

Simmo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 18, 2022

I'm not sure where you're planning on using it? As a guard?

Andrea Robbins
Contributor
January 18, 2022

I plan on using it so the same issue doesn't get linked more than once. I changed it to this since the one I had below had an error: newautomation.jpg

Simmo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 18, 2022

That makes sense. I think you can probably simplify it to:

issuekey != {{issue.key}}

However, are you trying to refer to the issue that triggered the rule or the issue with the similar description?

If it is the one that triggered the rule you should change your smart value to:

issuekey != {{triggerIssue.key}}
Like John Funk likes this
Andrea Robbins
Contributor
January 19, 2022

Thank you so much!

Like John Funk likes this
0 votes
Andrea Robbins
Contributor
January 18, 2022

I think I might have a solution if anyone is familiar with reg expressions: 

regexpression.jpgI keep getting an error though. I think my smart value is off maybe. 

Bill Sheboy
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 18, 2022

Hi @Andrea Robbins 

For JQL the summary field does not support the IN operator.  Instead you could try the contains operator: ~

Kind regards,
Bill

Andrea Robbins
Contributor
January 18, 2022

Thank you! I am hoping the reg ex and smart values are correct and that the ~ was the issue. 

Like Bill Sheboy likes this
0 votes
Pramodh M
Community Champion
January 17, 2022

@Andrea Robbins

Yeah, these kinds of Automations are efficient enough to identify the words, Jira is not an AI.

It's a Project Management tool. Link the issues manually you search through the duplicate issues and confirm whether they are exactly the same or nearly the same!!

Suggest an answer

Log in or Sign up to answer