Is there a way to change a board's filter using the REST API?

Alexis Paquette July 2, 2018

Basically what I would like to do is copy a board from an existing project to a new one. What I do through the UI is copy a board and then change the new board's filter for a filter created specifically for the new project.

I can copy a board using  :  https://jira.com/rest/greenhopper/1.0/rapidview/{}/copy

 

But once I have the new board, I'm not able to change the filter. Is there an endpoint for this? I could not find any in the documentation. 

 

I've found a similar question, but it was from 2013... (https://community.atlassian.com/t5/Jira-Software-questions/Change-a-board-s-filter-via-REST-API/qaq-p/292327)

1 answer

0 votes
josh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2018

Unless you're on a pretty old version of Jira, the */greenhopper/* endpoints should be removed.

You would have to combine a few things to accomplish this:

  1. Get a filter https://docs.atlassian.com/software/jira/docs/api/REST/7.7.2/#api/2/filter
  2. Create a new filter https://docs.atlassian.com/software/jira/docs/api/REST/7.7.2/#api/2/filter
  3. Add Share Permission to the filter https://docs.atlassian.com/software/jira/docs/api/REST/7.7.2/#api/2/filter
  4. Create board, providing the ID of the filter you just created: https://docs.atlassian.com/jira-software/REST/7.3.1/#agile/1.0/board-createBoard
Alexis Paquette July 3, 2018

Thank you for your answer!

I tried this solution but I was not able to entirely configure the board. My goal in doing a copy of an existing board is to get the same column, color, card layout, quick filters etc...

Angkoso Brami Prasojo May 19, 2021

You can change the filter after your clone board using this API 

http://host,com/rest/greenhopper/1.0/rapidviewconfig/filter

"id": "49",    "savedFilterId": "10869" }

id is your board id

savedFilterId is filter id 

you can try this, good luck!

Like Cathy Liu likes this

Suggest an answer

Log in or Sign up to answer