JIRA Webhook event via query params?

Daniel Bogan November 16, 2017

Is there any way to get the Webhook event sent via a query param, rather than in the body?

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 16, 2017

Hello,

Do you mean that you want to pass issue id, project id or other parameters as a URL part?

When you define a webhook try to define the URL like this

http://jira.example.com/webhook?issuekey=${issue.key}&projectkey=${project.id}

You can read more about webhooks here

https://developer.atlassian.com/jiradev/jira-apis/webhooks

Daniel Bogan November 16, 2017

Right, that much I know - but I also want to know what event triggered the webhook, so something along the lines of:

http://jira.example.com/webhook?issuekey=${issue.key}&projectkey=${project.id}&event={$webhook.event}
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 16, 2017

I see. I have never did it. But you can try it. add ${webhook.event} or ${event} or ${event.id}

Or maybe, someone will answer your question.

Suggest an answer

Log in or Sign up to answer