Hello,
I am currently developing an Jira Cloud Plugin. One functionality will be sending notifications to Jira users.
For that I am trying to call the endpoint POST /rest/api/3/issue/{issueIdOrKey}/notify with following Body:
{
"subject": "Test Email",
"textBody": "Body",
"htmlBody": "<h1>Body</h1>",
"to":
{ "voters": false,
"assignee": false,
"watchers": false,
"reporter": false,
"users": [{
"accountId": "5e4bb2c3c8ec310c955b7XXXX",
"active": true }],
"groups": null
}
}The API is returning always following error:
{"errorMessages":["Internal server error"],"errors":{}}
How should I now what exactly the problem is? Is there a way to find it out? Or do I miss something in my request body?