Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to automatically link a ticket based on text in body/description

Hi,

 

I'm trying to use the "Automation for JIRA" plugin to simplify the linking process within my tickets (and increase quality within my team as they mention certain items).

I am successfully linking items when the ID is mentioned in a comment, using one of the default automations that comes with the plugin. 

However, I have been unsuccessful at linking items with the ID is mentioned in the body/description of a story. Instead, I keep getting an error,

"At least one of 'id' or 'key' is required to identify an issue."

The rule I am using is below:

Screen Shot 2019-07-01 at 2.50.37 PM.png

 

And, although the rule matches on the initial "If" statement, if fails on the Link, which makes me think that I must not be using the pattern syntax appropriately (but this is the same syntax as I see on the 'Link on comment' automation).

Screen Shot 2019-07-01 at 2.51.37 PM.png

2 answers

Hi David,

The 'match text function requires a capturing group to get it to spit out the output.  I managed to get something similar working with the following:

{{issue.description.match("([A-Z]+-\d+)")}}

Let me know if that doesn't work for you.

Cheers,
Brydie

Thank you, Byrdie! But unfortunately, I'm receiving a different type of error now: 

 

JIRA automation - error.png

Hi David

It's not obvious where that error is coming from.  Can you please raise a support request with us so I can dig into it further?  

Thanks,
Brydie

Hi,

Can you help me understand how you automated linking to issue which was mentioned in the comment section? I am trying it and can't get it to work.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - April 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

278 views 3 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you