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: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

 

TAGS
AUG Leaders

Atlassian Community Events