Forums

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

How to find the contents of the Jira webhook payload

Leslie Martin January 9, 2024

Screenshot 2024-01-09 130349.png  

 

 

Hello, 

I am using automation rules to POST issue data to a webserver. Its working very well but randomly I get an HTTP response 400. 

I am assuming the actual data structure of "Issue data (Jira Format)" is changing depending on the ticket data. 

Is there anywhere in Jira logs that I can find the actual JSON payload that Jira sent to my endpoint? 

6 answers

0 votes
Leslie Martin February 19, 2024

Hi @Eugenio Onofre  or anybody ??

Eugenio Onofre
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2024

I am sorry for the delay on this, I have been out of office on vacation. 

Unfortunately I am not aware of any smart variable that can be used to log REQUEST. 

I would recommend raising a ticket with atlassian support at https://support.atlassian.com

Leslie Martin February 22, 2024

Okay. That is what I was trying to do. 

Thanks for your insights. 

0 votes
Leslie Martin February 15, 2024

Hello,

What is the best way to get answers from this community? 

0 votes
Leslie Martin February 9, 2024

Hello, 

Does any one have any insights for me?? I'd be glad to look through documentation, if someone could point me to where it gives the info I need. Thanks!

0 votes
Leslie Martin February 1, 2024

@Eugenio Onofre  do you have any more ideas?

The {{web.request.body}} doesn't work for me. 

Eugenio Onofre
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 1, 2024

Hi, pardon. The correct is {{web.response.body}}

Leslie Martin February 2, 2024

@Eugenio Onofre  I am trying to capture the outgoing payload, not the response from the server. 

Nonetheless, I tried your recommendation, but I get the same result.

Screenshot 2024-02-02 0807432.pngScreenshot 2024-02-02 080706.png

Eugenio Onofre
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 6, 2024

Hi @Leslie Martin , would you mind sending a screenshot of the step where you call the API (please hide API details)

Leslie Martin February 6, 2024

Hi @Eugenio Onofre ,

Sure, no problem. There are various here in this thread already. I can repost them or take more if they don't tell you what you need.

I am sending a web request to an external server. I would like to log both the post to the server and the response from the server. The response from the server works good with {{webResponse.body}} but I have not had any success with capturing the original payload that gets posted to the server. 

I'd really appreciate your input! 

Leslie Martin February 8, 2024

@Eugenio Onofre Do you need me to upload more screenshots? I'd really like to get this fixed. 

0 votes
Leslie Martin January 10, 2024

I found documentation for logging the web response, but I need to log the web request. 

Thanks so much!

0 votes
Eugenio Onofre
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2024

Hi @Leslie Martin

You can have the payload logged as part of your automation. To do so, you can add a log event after the webhook call and log {{web.request.body}}.

Another option would be for you to, inside the webhook automation, test it using the VALIDATION feature.

In case this answer helps you resolve your query, please accept it so it can help other community users in the future.

Regards,
Eugenio

Leslie Martin January 10, 2024

Hi @Eugenio Onofre 

Thanks for those insights. It will probably get me to where I'd like to be. 

But its not working....

I added a log action to the end of my rule:

Screenshot 2024-01-10 102545.png

 

But I get this: 

Screenshot 2024-01-10 102903.png

 

I'm struggling to find documentation on what the correct smart values should be? Or is there something else wrong with my rule? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events