The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Check if issue exists when post incomming webhook

landon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 18, 2020

When I tried to find issue ticket using JQL query in incomming webhook, If not found issue ticket then occurs exception.

 

Screen Shot 2020-03-19 at 10.08.50 AM.png

 

I used this query, key = "{{webhookData.pull_request.head.ref.split("-").get(0)}}-{{webhookData.pull_request.head.ref.split("-").get(1)}}" to find issue in incomming webhook.

 

Can I accept normal result (just nothing action), not exception? Anyway, I don't want to that exception...

Think about other examples like database system, if we not found a row in the table then it is possible to set default value(null or something else). 

How can I do that in JQL?

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events