Webhooks

Pablo
Contributor
August 17, 2021

Hi

I'd like to ask if anyone knows how to manage webhooks from:

https://<jira_base_url>/plugins/servlet/webhooks

via scriptRunner (ex. Console) ?

 

Basically i need to be able to deactivate/activate them automatically.

 

Thanks in advance

1 answer

0 votes
Alain C_ Boss
Contributor
November 20, 2024

Hi Pablo,

you have probably solved the problem by now. The solution is a script runner script that accesses following REST Endpoints

  • https://${instance}/rest/webhooks/1.0/webhook"
  • https://${instance}/rest/webhooks/1.0/webhook/${getId(self)}

I used the jsonSlurper to parse the response. 

best regards

Alain

 

Suggest an answer

Log in or Sign up to answer