Hello,
I have added a webhook using addon descriptor as below.
"webhooks": [
{
"event": "jira:issue_created",
"url": "/issue-create",
"excludeBody": false,
"propertyKeys": [
"issues",
"tasks"
]
}
]
Now whenever i trigger this webhook, i am receiving empty payload from JIRA.
I am using ngrok to get public url and using spring boot as development platform.
The restcontroller is as below:
@RequestMapping(value = "/issue-create", method = RequestMethod.POST)
public void context(@AuthenticationPrincipal AtlassianHostUser hostUser, @RequestBody JSONObject data, @RequestHeader HttpHeaders headers) {
log.error("Reached here!!");
System.out.println(headers.toString());
System.out.println(data.toString());
}
Here i am receiving headers but not receiving and payload.
Is there any solution available for this problem?or is there any alternative way available to get details whenever a issue gets created or modified other than webhook?
Thanks,
Hardik