Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automatically linking issues

Dawid Kokot July 4, 2022

Hello,

I'm trying to create an automation, that would link tickets from two project with the same Summary, but I cannot think of any ways of doing that. I tried by using JQL query, but I was unsuccessful.

In more details:

There is project A and within that project there is a ticket with Summary "XYZ"

Then there is project B, where there is a new ticket created with the Summary "XYZ" as well.

I would like the newly created ticket from Project B to link to the ticket from Project A.

Any ideas how I can do that?

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2022

Hi Dawid,

Can you share the rule that you have created so far? 

And what would initiate the trigger firing? A new issue is created? 

Dawid Kokot July 4, 2022

Hi John,

Yes, new issue created would trigger the issue.

For now, I tried this:

Trigger: issue created (in project B), then checking if the created issue has the appropriate issue type, then I tried to use "Lookup issues" function to find the issue with the same summary in the other project (project A) and link it to the newly crated issue.

The hard part is in the "Lookup issues" step and I'm unable to get through it.

Maybe there is some other way to make it work?

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 5, 2022

Maybe we can do this without the lookupIssues function. 

Create a rule for Issue Created. 

Then create a Branch using JQL. The JQL will have all of the issues from Project B.

Then add a Condition to match the two Summary fields (one from the trigger issue (project A) and one from the JQL (project B). 

I have test it and it works for me. Here is my rule:

Screenshot.png

Like • Dawid Kokot likes this
Dawid Kokot July 6, 2022

Hi John,

it worked that way, so thank you very much for your help.

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 6, 2022

You are very welcome. If that answered your question, can you click on the Accept Answer button above to close this one out? Thanks!

Like • Dawid Kokot likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events