Forums

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

Jira webhook body manipulation

Kristian Teodorov
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!
April 4, 2018

Hello,

I am trying to pass the jira webhook body on specific event (issue created), to another system. The webhook is fired and the body results as in the examples given in the https://jira.atlassian.com/rest/api/2/issue/JRA-2000?_ga=2.60228653.106464054.1522652502-205093363.1520424199 .

However the system's API requires the body in slightly different format.

So my question is, is there a way that the body can be modified, e.g. remove or add fields from the issue being created?

Might that be achieved using some sort of json proxy or completely custom jira event listener should be done in order to achieve the desired result?

 

Thanks & Regards,

Kristian

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.
April 4, 2018

You could develop your own listener to send json in the required format. But it would be a more complicated solution.

Kristian Teodorov
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!
April 4, 2018

So, is there any other way to accomplish this?

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.
April 4, 2018

I think, you can not modify the webhook json. That is why you can use the listener solution.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events