Questions on usage of REST API and Manage Version permission
Hi We have problems with this add-on. We have added user 'sky-rest-user' to Developers project role in project 'DEPO' sky-rest-user is OK and active. We use 'Nykredit Standard Permission Scheme' permission scheme on 'DEPO' 'Nykredit Standard Permission Scheme' has Manage Versions set up to: Project role Developers and Administrators + Project lead But attempt to create/release version returns this error:
:47:56 Successful. Code: 200
[Pipeline] echo
21:47:56 [self:http://features-direct/rest/api/2/version/37722, id:37722, description:0.1.100, name:0.1.100, archived:false, released:false, startDate:2017-11-23, userStartDate:23/11/17, projectId:10602]
[Pipeline] jiraEditVersion
21:47:56 JIRA: Site - Nykredit Jira - Updating version: Version(id=37722, name=0.1.100, description=0.1.100, archived=null, released=true, startDate=null, releaseDate=2017-11-29, userStartDate=null, userReleaseDate=null, project=10602, projectId=null)
21:47:56 Error Code: 400
21:47:56 Error Message: {"errorMessages":["You must have global or project administrator rights in order to modify versions.","You must have global or project administrator rights in order to modify versions."],"errors":{}}
[Pipeline] echo
21:47:56 It was not possible to edit the version: 0.1.100 in the Jira project: DEPO
[Pipeline] echo
21:47:56 Status code was: 400 and error message was: {"errorMessages":["You must have global or project administrator rights in order to modify versions.","You must have global or project administrator rights in order to modify versions."],"errors":{}}
[Pipeline] emailext
We have found out that user ALSO needs to be in Administrator project role before it works !?
Why is that? We only want to add sky-rest-user to Developer project role.
Regards Jan-Ove Nesheim
Comments (8)
-
repo owner -
repo owner And can you please provide a screenshot?
-
reporter Use via REST API yes. What do you want a screenshot of ?
-
repo owner -
assigned issue to
- edited description
-
assigned issue to
-
repo owner To make use of the new permission role Version Manager you must use a different REST URL. Also the JSON object is slightly different.
See here for documentation of REST API of Version Manager for Jira plugin.
-
reporter - changed status to resolved
Hi Holger Thank you for this last info - that did the trick :-) Cheers Jan-Ove
-
repo owner - marked as task
- changed title to Questions on usage of REST API and Manage Version permission
-
repo owner Great to hear that your problem is solved.
Feel free to leave a comment and rating for Version Manager for Jira plugin on Atlassian Marketplace.
- Log in to comment
You want to use REST API to create the versions? Or a user via web user interface?