It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I change JIRA board Administrator from the API? Edited

Isabelle Bouchard Sep 15, 2017

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!

1 answer

1 accepted

1 vote
Answer accepted
MoroSystems Support Sep 15, 2017

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:
image.png

Isabelle Bouchard Sep 15, 2017

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 ..?

MoroSystems Support Sep 15, 2017

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":[]}}
  • "id" is ID of board 
  • "admin" is key of the user who is going to be set as administrator

you can set multiple users and groups as board's administrators

Isabelle Bouchard Sep 18, 2017

Thanks! It worked! :) 

Any idea on how to do it for confluence spaces as well using POST

confluence_server_url + '/rest/api/space'
MoroSystems Support Sep 18, 2017

hi Isabelle, you're welcome. Can you accept the answer and create a new Question with all the details? :)

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

996 views 12 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you