Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Moving a board to a new project using the API

Menno Brendeke August 15, 2018

Hi,

I'm looking to move a board to a different project using the API. Can anyone help me with finding the right request for that? 

Thanks!
Menno

2 answers

1 vote
Tarun Sapra
Community Champion
August 15, 2018

Hello @Menno Brendeke

Boards are associated with project based on the JQL filter i.e. if the filter has the query

Project = XYZ 

Then when you use this filter on the board then you will see the board associated with project XYZ

The cloud APIs for boards are listed here

https://developer.atlassian.com/cloud/jira/software/rest/#api-board-get

There is no API for "update board" thus best is to do 2 rest calls, first to delete the board and second to create a new board and mention the filterId containing the project to which you want to move the board as boards are nothing more than a view of the issues being fetched by the JQL filter. 

Menno Brendeke August 15, 2018

Hi Tarun,

Thanks, but I don't think that will work for my use case.

I've created the board by copying and renaming it using the API because that way I can copy the custom kanban column config from a template board. But of course, after copying and renaming, I need to move it to the new project.

I know there are a lot more API calls available than listed on the webpage you mentioned, so I was hoping for an insider tip ˆˆ. It must be available, as it is an option under the ellipsis and delete and copy can be done via API too.
Screen Shot 2018-08-15 at 14.42.16.png
Hope someone can help me out here :)

Menno

0 votes
Menno Brendeke August 20, 2018

Hi Tarun,

This code should do the trick for moving the board:

PUT - ... /rest/greenhopper/1.0/rapidviewconfig/boardLocation

{
"rapidViewId": Board_id,
"locationType": "project",
"locationId": project_id
}

Cheers 

Tarun Sapra
Community Champion
August 20, 2018

Hello @Menno Brendeke

Thanks for sharing the endpoint though I don't see it as part official documentation, but does this operation also update the underlying JQL filter of the board if the JQL filter was anything but a simple project = XYZ query. 

Menno Brendeke August 20, 2018

Nope, it just moves the board. But this was exactly what I was looking for, as I have set the filter already in an earlier stage.

I have a template board, which I copy, rename and update the filter.  Now I'm finally able to move it to my newly created project too. This all, because you cannot create a board with a custom column config via the API. (at least not to my knowledge).

Suraj Shaha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 15, 2019

Hey @Menno Brendeke I am looking to do the exact same thing as you have mentioned in your comment. I have created a board, which will be my template for all the upcoming projects. I want to use this template board in the other projects, how can I achieve the same? I did not understand the "update the filter part". Could you please help?

Suggest an answer

Log in or Sign up to answer