Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get event type as header with Jira webhooks API?

Muhammed Kilic
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 2, 2020

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}

 

1 answer

1 accepted

1 vote
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 7, 2020

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events