Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Webhook Input Parameters as POST / JSON

Jens Kisters __SeibertSolutions
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 21, 2016

This question is in reference to Atlassian Developer Documentation: Webhooks

Hey there,

on a JIRA server instance i want to integrate a service which doesnt read the input data from the parameters passed via GET,

but expects a JSON data structure to be sent as POST body data like this:

POST http://127.0.0.1:5000/Customer/GetCustomers HTTP/1.1
Connection: Keep-Alive 
Content-Type: application/json
Content-Length: 86 
Host:127.0.0.1:5000

{"FilterByName":null,"Username":"testuser","Password":"testpass","ImpersonateAs":null}

Is there a way to achieve this somehow?

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Volodymyr Krupach
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 21, 2016

Hi Jens,

You have to code "http proxy" that accepts the params from the webhook, repacks to the desired format and makes the call to your third system. It can be simple webapp/script on any language you/your team is comfortable with.

Jens Kisters __SeibertSolutions
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 21, 2016

Yes that one alternative we are considering, thanks for the confirmation.

Jean Rodriguez June 13, 2017

Can this also be accomplished using Scriptrunner?

TAGS
AUG Leaders

Atlassian Community Events