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
I'm getting the same results. Has this never been solved? I've read the Atlassian document on this, it's well written https://developer.atlassian.com/server/jira/platform/webhooks/#example--callback-for-an-issue-related-event
But when I trigger the event inside JIRA, I receive an empty payload from JIRA. I wrote a simple solution in Express with a public url and it gets a POST request from JIRA exactly as I expect, but no payload. Any help is appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.