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
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.
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.
Hope someone can help me out here :)
Menno
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
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.