Webhook Input Parameters as POST / JSON

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

1 vote
Accepted answer

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.

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

Can this also be accomplished using Scriptrunner?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Friday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

42 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you