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}).*")}}
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):
Here are some screenshots: &
I am sure that I overlook something and will need you help, community!
Best from me,
Dimitar
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:
I do the same as suggested here but when the title does not contain an expected issue string like "RM-123", then the automation fails and send me an email.
Is there a way to set a default value if no issue string is found? Or another way to avoid an error for this situation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I figured it out by myself.
I use the option "No issues from the webhook" in the "incoming webhook". Then I add the following steps to the automation:
1. "Create variable": This stores the extracted issue key from the pull request title into the smart value variable "issue".
2. "Advanced compare condition": This has the effect that if there was no issue key in the title of the pull request, I do not execute the next steps in this automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are lucky - you are running on Cloud.
Atlassian appears to be holding off from implementing "Create Variable" in DC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.