Hi,
I would like to ask this question again. Yes, we can get event type from body but it is huge amount of data. I just want event type with something like this with context query parameters:
http://jira.example.com/webhook?issuekey=${issue.key}&projectkey=${project.id}&event={$webhook.event}
Hi Muhammed,
I see that you are looking to be able to use the event type that triggers the webhook as a substitution variable in the webhook URL itself. This is not something that the webhooks in Jira Server or Jira Cloud can do today.
I have created a pair of feature requests for this ability over in JRACLOUD-75680 and JRASERVER-71888. While there are a few existing variables that can be used as outlined in the Cloud Webhooks doc and the Server Webhooks doc, neither of these extend themselves to the event type itself. As such I believe it would be necessary to change the code that operates that function to be able to use this as such.
Sorry there does not appear to be a solution for this at this time, but I would recommend voting/watching those issues for any updates. Should a better work-around be found these can be updated to reflect that.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.