Hi,
I'm using the JIRA Python API wrapper to create JIRA projects and boards. I wonder if there is a way to change the board Administrator from either Python or REST API? I would like to have a different user than the one creating the board.
I am now using create_board(...) method and by default the administrator is the creator of the board.
Thank you for your help!
There is a REST endpoint /rest/greenhopper/1.0/rapidviewconfig/boardadmins whose PUT method can set the administrators of the project. Data must be in the format:
Thanks for the quick reply!
Following that, I get a 500 JIRAError: Unrecognized field "userKeys"...
Also is it supposed the set the board admin right for one board only? How is it linked to the proper board?
Is there a place where I can get a bit of documentation on it ..?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I didn't find documentation so I think it is internal REST service which is not documented and can be changed between versions. I tested it a little and following valid JSON works:
{"id":1,"boardAdmins":{"userKeys":["admin"],"groupKeys":[]}}
you can set multiple users and groups as board's administrators
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! It worked! :)
Any idea on how to do it for confluence spaces as well using POST
confluence_server_url + '/rest/api/space'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Isabelle, you're welcome. Can you accept the answer and create a new Question with all the details? :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does anyone know why this works for some users, but for other users this PUT method returns the message "\"myUsername\" is not a valid user."?
Note the additional backslashes + double quotes in front of and at the end of myUsername. I didn't add them, maybe they cause this problem?
I also noted that you talk about "user keys" instead of "username". Is there any difference? My scipt uses the username and for 99% of users it works just fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.