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.