How to update PortletConfiguration (Gadget) to get another filter saved in it?

How can I update a PortletConfiguration to get another filter saved in it?

2 answers

1 accepted

My problem was that whenever a dashboard was cloned, it was created a copy of it, but all filters in its gadgets were the original filters. But I wanted cloned dashboards with cloned filters in it, so all original stuff keeps untouched, when working with the cloned dashboards.

I've already found a solution, how to manage that. I always created a new filter, modified the UserPrefs of each Gadget and save it afterwards with saveLegacyPortletConfiguration(...).

1 vote

I'm sorry, that doesn't make much sense. If you've got a portlet configuration, you've got some settings from the user. What do you mean "another filter"? If you need another filter, you set up the properties to ask the user for a second filter.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

158 views 1 17
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you