I am using this https://docs.atlassian.com/jira/REST/latest/#d2e2993 as my reference but the sample request that is shown there is no help at all. I suspected that the "to" object specifies the recipient/s but i still can't make a proper call? Can anyone give a working sample?
Community moderators have prevented the ability to post new answers.
This should work:
{
"subject": "testsubject",
"textBody": "test",
"htmlBody": "test",
"to": {
"users": [
{
"name": "admin",
"active": true
}
],
"groups": [
{
"name": "jira-users",
"self": "https://url.com/rest/api/2/group?groupname=jira-users"
}
]
}
}
Wrong answer! Made an account just for this:
OP's didn't work because by default you have "receive notifications from myself" disabled. It will work for anyone but the account you're logging in with, unless you change your account's settings!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the error, do you have a solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is my error: "No recipients were defined for notification."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.