Join the community to find out what other Atlassian users are discussing, debating and creating.
Hello everybody,
I'm trying to use webhooks in my Atlassian connect addon. I add this snippet in my descriptor.json and it works
.... "webhooks": [ { "name": "test", "events": "jira:issue_updated", "filter": "project = test", "url": "/mainIssue", "excludeBody": false } ]
I need to add "jira:issue_created" also without duplicating the code I tried this but it doesn't work
"webhooks": [ { "name": "test", "events": [ "jira:issue_updated", "jira:issue_created" ], "filter": "project = test", "url": "/mainIssue", "excludeBody": false } ]
Would you have any proposition how I can specify more events ?
Best regards
Hi,
You need to specify a new webhook object for each event:
.... "webhooks": [ { "name": "test updated", "events": "jira:issue_updated", "filter": "project = test", "url": "/mainIssue", "excludeBody": false }, { "name": "test created", "events": "jira:issue_created", "filter": "project = test", "url": "/mainIssue", "excludeBody": false } ]
Thanks,
Jon
Thanks @Jon Bevan [Adaptavist] that's what I want to avoid it. That's mean that I will duplicate the code. But if there is not any way I will do like that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.