Forums

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

JIRA Cloud WebHook fired with empty body

Hardik Shingala
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!
July 25, 2018

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

1 answer

0 votes
Bill Kunneke July 29, 2021

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events