Forums

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

I want to create a webhook, which only gets triggered when issues with particular label are updated

Harsh Agrawal
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!
April 6, 2023

I am trying to create a webhook, which gets triggered only when issues with a particular label are updated/created/deleted. I can't find any documentation on how to register webhooks , so that only issues with a particular label can trigger it. I have tried many permutations and combinations of the jql query, and have attached one example below, can someone please help me out.

curl --location 'https://${domain}/rest/webhooks/1.0/webhook' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Token' \
--data '{
"name":"second webhook",
"url": "https://a9b9-2a09-bac5-3aff-7eb-00-ca-cf.in.ngrok.io/jira",
"events": [
"jira:issue_created",
"jira:issue_updated"
],
"fieldIdsFilter": [],
"query":{
"jql":"labels in['\''Zluri_Manual_Task'\'']"
}

}'

1 answer

1 accepted

0 votes
Answer accepted
Moses Thomas
Community Champion
May 27, 2018
Marzi Goodarzian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 27, 2018

Hi @Moses Thomas 

thanks very very very much.

this is very useful.

Moses Thomas
Community Champion
May 27, 2018

@Marzi GoodarzianPlease accept answer so that it could be useful to  others.

Best!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events