Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

1 vote
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

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

107 views 0 4
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