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 vote
Jens Schumacher - Released_so
Community Champion
April 6, 2023

Have you tried using Jira automation for this? It's a bit more flexible and easier to configure. Below is an example of what that might look like. 

 

Screenshot 2023-04-06 at 8.29.59 pm.png

Cheers,
Jens

Released.so - Release notes powered by Jira

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events