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

Suggest an answer

Log in or Sign up to answer