Forums

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

Automation Rule to link Jira tickets based on a Custom Field

Enric Márquez August 31, 2023

Hello,

as on here I am trying to link any open tickets which share the same info contained within the custom field "customfield_10160".

This is how I am trying to run the automation rule;

duplicaterulescreenshot.jpg

The Link event is configured like this;

duplicaterulescreenshot2.jpg

It seems that after the comparing event is not linking the tickets;

duplicaterulescreenshot3.jpg

 

Could you kindly help me to understand where is this rule failing? I am quite new with this type of configurations. 

thank you,

 

best regards,

 

Enric

4 answers

1 accepted

1 vote
Answer accepted
Marc - Devoteam
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.
August 31, 2023

Hi @Enric Márquez 

Welcome to the community.

I would alter the rule to the following (replace the compare with your requirements)

I have added the branch to find issues that are open as in your request and link to the trigger issue

Most recently created issue doesn't have to the issue triggering this rule.

Screenshot 2023-08-31 at 12.50.50.png

Enric Márquez August 31, 2023

Hi there Marc! 

thank you for answering,

however I am afraid I do not quite understand the reason behind your proposal

Screenshot 2023-08-31 172129.jpg
By doing this then I won´t be comparing the custom field right? which the reasoning that I want to apply in order to link issues.

Like Marc - Devoteam likes this
Marc - Devoteam
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.
August 31, 2023

Hi @Enric Márquez 

Replace this with your values.

I don't have a custom field with id 10160, so I used some dummy data at my end to reproduce you issue. 

Like Enric Márquez likes this
2 votes
Enric Márquez September 4, 2023

Hi again people, thank you @Marc - Devoteam and @Mohamed Benziane for your answers,

they led me to implement the following conditions which work perfectly;

Screenshot 2023-09-04 091141.jpg

0 votes
Enric Márquez August 31, 2023

Hi there Mohamed,

 

thank you for answering, 

Apologies if I was not clear, so I want to stablish an automation rule that whenever a new ticket is generated, and it contains the same shipment number (information contained within customfield_10160) as an existing ticket, these two tickets are automatically linked.

I've made a few changes and this is actually how it looks like, but I am not sure its working as expected;

Screenshot 2023-08-31 173019.jpg
Hence the compare two values command.

Based on how the automation rule is built, does that command not compare the custom field of already created and open tickets with the custom field of new issues?

 

thanks for your help!

0 votes
Mohamed Benziane
Community Champion
August 31, 2023

Hi,

You are comparing the customfield of the new issue with itself so it won't work. Can you give us more info about what you are trying to achieve.

Suggest an answer

Log in or Sign up to answer