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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events