Forums

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

Automation linking Jira Issues based on a custom field

Marije Pierson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 26, 2022

Hello - same as https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Link-issues-based-on-field-contents-Automation-for-Jira/qaq-p/1471702, I'm trying to set up an automation that links 2 issues based on a custom field (the user ID), this is to identify duplicates.

I used the same Automation as used on the question linked above but I get errors I'm not sure how to fix! Some screenshots:

Screenshot 2022-04-26 at 14.56.46.png

Screenshot 2022-04-26 at 14.56.39.png

 

Any help would be appreciated :)

2 answers

1 accepted

3 votes
Answer accepted
Mark Segall
Community Champion
April 26, 2022

Hi @Marije Pierson and welcome to the community!

You need to change the link issue action to link to the trigger issue.  Linking to the "most recently created issue" is intended for when you've created an issue earlier in your automation rule.  

Additionally, you may want to add a clause to your branch query like this to prevent an error of the created issue attempting to link to itself:

project = "Support Triage" AND Updated >= startOfDay() AND key != {{issue}}
0 votes
Marije Pierson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 28, 2022

Apologies for not replying sooner Mark! A day off got in the way :) 

Thank you so much for your help, it worked.

Suggest an answer

Log in or Sign up to answer