The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Parse jira webhook event json payload to equivalent java pojoa(bean)

Rajeev Sharma
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!
May 10, 2022

Hello Team,

We are receiving jira webhook event json payload as a string fine into a spring rest POST api whenever the jira issue is updated/comments are added etc..

The webhook event payload json structure looks like this :

{
"timestamp": 1652131581761,
"webhookEvent": "jira:issue_updated",
"issue_event_type_name": "issue_generic",
"user": {},
"issue": {},
"changelog": {}
}

 

Question:

a) how can we parse/convert this json string to java object(bean), i am assuming there are some existing jira java bean class(pojo) package provided by jira itself which can be used here.But i am not sure the class name.

Our Jira version seems to be as follows : v8.16.1

Could you please suggest and share sample code to parse the entire json payload to java bean ? This will help us to read the payload effectively.

 

 

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.