floralvikings / jira-connector

NodeJS Wrapper for the Jira REST API
http://floralvikings.github.io/jira-connector/
MIT License
373 stars 180 forks source link

Cannot add actors to the given role #229

Open nmehare opened 4 years ago

nmehare commented 4 years ago

I am trying to add actors to role using addActors method , below is my code: jiraClientAuth.roles.addActors({ roleId: 10093, user: useraccountIds })

I am getting below exception everytime I try to execute this command. {"statusCode":500,"body":{"errorMessages":["Internal server error"]

I tried it using cURL also but getting same exception: curl -g -XPUT --request POST --url "https://.atlassian.net/rest/api/3/role/10093/actors" --user ":" --header 'Accept:application/json' --header 'Content-Type:application/json' --data '{"user": ["userAccountId1", "userAccountId2"]}'