Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do you specify recipients for this resource: rest/api/2/issue/{issueIdOrKey}/notify?

DJ Marcaida January 28, 2015

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?

6 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
DJ Marcaida February 24, 2015

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"
            }
        ]
    }
}
3 votes
Serguei July 27, 2015

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!

1 vote
Neta Elyakim
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2018

I have the error, do you have a solution?

0 votes
DJ Marcaida February 11, 2015

Would someone please answer this?

0 votes
DJ Marcaida February 5, 2015

This is my error: "No recipients were defined for notification."

0 votes
DJ Marcaida February 5, 2015

Anyone?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events