Hello!
I'm trying to figure out how to launch a Webhook in jira when any user is added to a particular group, the idea is the following:
I have a script that every time it runs, it takes all the users in group X and it add them as "Default reviewers" in some repositories in bitbucket. I would love to automatize this so every time a new colleague joins the group the scripts gets automatized.
If I could launch a webhook on the event of a user added to a group, this would be so easily achievable! But I'm not quite sure how. First I thought of creating a custom listener using ScriptRunner, but even if I can catch the event, I don't know how to get the webhook out of it.
Ideas are very welcome!
Hello,
You can not write such a webhook out of the box. You would need a scripting plugin, which can catch this event and then you should send a rest call in this event listener.
Hello!
Thanks, I already realized this.
At the end I believe I will be able to get this right by setting up a custom listener on scriptrunner and using the GroupMembershipsCreatedEvent to listen for a user added to a group. Then, I will write a rest client in groovy to send a POST to whatever serverless platform I want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.