Hello,
I need to receive the JSON in a format that is recognized by my endpoint. Is there a clean way do to this? meaning without using a listener or similar?
Thanks for your help
Hello Cievoloth,
Webhooks are sending the data in JSON format from Jira. You’re able to adjust some variables within the webhook URL, but you’re not able to adjust or reformat the JSON data formatting.
With this said, there are guides which give you further information about Webhooks.
I would be interested to learn about your endpoint, what is the application that is not compatible with the JSON format?
Regards,
Stephen Sifers
Hi and thanks for the answer,
we want to receive ticket information to process it with CircleCI but.. CircleCI need to have this format to work process the information:
{
"build_parameters": {
"timestamp",
"user": {
--> See User shape in table below
},
"issue": {
--> See Issue shape in table below
},
"changelog" : {
--> See Changelog shape in table below
},
"comment" : {
--> See Comment shape in table below
}
}
}
We'll need to add build_parameters and with the ticket ID we will be able to fetch the rest of the information.
Thanks for the answer, we will have to implement a listener that will change the format to what we need.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Cievoloth,
That is interesting; others may come across this and find what you end up doing very useful. If possible, when you create a listener, could you please share how you did so? That would facilitate others to learn and adapt without having to repeat what you're about to do.
Thanks for the response and the explanation of your use case. We look forward to seeing how you adapt to this.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.