Forums

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

How to modify the webhook JSON?

Cievoloth Coca
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!
February 4, 2019

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

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2019

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

Cievoloth Coca
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!
February 5, 2019

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

Like Stephen Sifers likes this
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events