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

Find issue with JQL and issue key as smart value Edited

Hi there!

I am trying to setup an automation, which parses github PR webhook payload, finds an issue based on this payload and comments under the issue that a PR is opened.

Unfortunately I am facing a problem with the JQL, because in order to get the issue key I need to extract if from the webhook payload.

Here is my JQL condition:

key = {{webhookData.pull_request.title.match(".*(RM-\d{4}).*")}}
  • I am absolutely sure that the smart value is working, because I am audit logging the same value in the previous step and it returns valid issue key;
  • I have tried the super simple JQL in Jira and the issue is found;

However, when the automation rule is executed, My JQL condition reports

"No issues were found, stopping the rule."

I found a super old bug about similar problem in AUT-516 and have tried the folowing options (none of them worked for me):

  • enclosing the smart value in single quotes ( ' ... ');
  • enclosing the smart value in two single quotes ( '' ... '');
  • enclosing the smart value in single quotes and escaping the double quotes in the regex;
  • enclosing the smart value in double quotes ( " ... ");
  • enclosing the smart value in double quotes and escaping the double quotes in the regex.

Here are some screenshots: Screenshot 2020-05-29 at 14.53.33.png& Screenshot 2020-05-29 at 14.53.49.png

I am sure that I overlook something and will need you help, community!

 

Best from me,

Dimitar

1 answer

1 accepted

0 votes
Answer accepted

The answer to this it pretty straightforward. We have to use Incoming Webhook as a trigger with "Issues provided by running the following JQL search". Here is a screenshot of the working rule:Screenshot 2020-06-23 at 11.16.11.png

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Automation

Announcing the Jira automation template library!

Hi all,  After many months of work, I am delighted to announce the launch of the Jira Automation Template Library!  The Template Library is a new website dedicated to all things Jira au...

998 views 17 26
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