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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.