Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

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

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

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

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

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!

Suggest an answer

Log in or Sign up to answer
TAGS

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