You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hello,
I'm just starting to get into Jira Automation and I have a rule that creates a "Relates to" Link if another ticket is mentioned in a comment. While reviewing the audit log this morning I noticed that a pair of tickets were linked to each other twice. This is not an ideal behavior, so I was wondering if anyone could help me add some logic to prevent this.
Hello All,
I was finally able to figure it out. Here is my overall rule
The change was adding the 2nd comparison after learning more about smartvalues.
Adding one more conditional before your Link action should do it.
I recommend the "Related Issues Condition" which allows you to test Linked Issues.
In the JQL, use this:
linkedIssue = {{comment.body.match ... }}
Below is a test rule I created to validate this approach:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you get an error when you used your regex in the smart value for the "Matching JQL" field? That would surprise me -- I'd appreciate seeing that error.
My suggestion was to set the "Matching JQL" field for this new condition, for your situation, to be this:
linkedIssue = {{comment.body.match("([A-Z]+-\d+)")}}
My test rule doesn't use it, but I'm proposing the new conditional in your rule would.
This would prevent creating another link (of any link type) to the same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank You @Mykenna Cepek - I misunderstood the validation message on that condition. I have added it and I'll see how it goes.
I really appreciate you helping me out
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Community! My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. In this video, I'll share my favorite Trello templates. Templates mentioned in ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.