Forums

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

How can I automatically link tickets that has the same field-value?

Justine
January 3, 2023

Whenever there is a new ticket, I want to automatically link it to tickets that has same field-value if that new ticket contains a similar field-value.

1 answer

1 accepted

1 vote
Answer accepted
Mark Segall
Community Champion
January 3, 2023

Hi @Justine - You could do something like this:

  • TRIGGER: Issue Created
  • BRANCH: JQL
    • YourCustomField = {{issue.YourCustomField}} AND key != {{issue}}
    • ACTION: Link Issue to your trigger issue
Justine
January 9, 2023

thanks man!

Like Mark Segall likes this
Andrew Lee
January 11, 2024

Hi,

 

Any ideas why this would won't work for my automation via Jira Cloud

 

Screenshot 2024-01-11 at 15.49.08.png

Mark Segall
Community Champion
January 11, 2024

Hi @Andrew Lee and welcome to the community!

Your branch is staying on the current issue but needs to instead branch into the desired issue(s).  You'll want to change the branch to use JQL.  Ultimately, the rule should look like this:

  • TRIGGER: Issue Created
  • BRANCH (JQL)
    • cf[xxxxx] = {{issue.customfield_xxxxx}} AND Key != {{issue.key}}
    • ACTION: Link Issue to Trigger Issue
Matt Munson
December 19, 2025

I want to implement this, but I also have about 600 old tickets I'd like to reprocess (and the standard plan so I also have an automation budget). So I am hoping for one automation that is computationally costly, but I only run one time as it will reprocess all the existing issues.

 

Would something like this work:
TRIGGER: Manual

BRANCH (JQL)

  • a query that get all tickets that I want to process
  • BRANCH (JQL)
    • cf[xxx] = {{issue.customfield_xxxxx}} AND Key != {{issue.key}}
    • ACTION: Link Issues

-------

I imagine the gotcha comes in specifying the issue.key correctly to mean the issue referred to by the outer branch.

Open to other approaches. Including downloading all tickets to a CSV, reprocessing to do the linkages with a custom R or Python script, and then re-importing all the issues from CSV, but that seems dangerous and drastic... (even it if does allow me to play in my coding comfort zone)

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events