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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

82 views 0 5
Read article

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