I am able to set only one reviewer through rest api.
{ "title": "Talking Nerdy", "description": "It’s a kludge, but put the tuple from the database in the cache.", "state": "OPEN", "open": true, "closed": false, "fromRef": { "id": "refs/heads/feature-ABC-123", "repository": { "slug": "my-repo", "name": null, "project": { "key": "PRJ" } } }, "toRef": { "id": "refs/heads/master", "repository": { "slug": "my-repo", "name": null, "project": { "key": "PRJ" } } }, "locked": false, "reviewers": [ { "user": { "name": "charlie" } } ], "links": { "self": [ null ] } }
Hello @andrei414 ,
Welcome to the Community.
reviewers property is an array, but items should be references to a user, so they should contain either username or uuid property, like this:
"reviewers": [
{
"uuid": "{4ebe61bf-...-a368a41c78f6}"
},
{
"uuid": "{2ce53e84-...-fff39d658b49}"
}
]
or, if you know their usernames:
"reviewers": [
{
"username": "dpenkin"
},
{
"username": "..."
}
]
Hope this helps.
Cheers,
Daniil
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.