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

JIRA Plugin Developer July 8, 2014

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

2 answers

1 accepted

0 votes
Answer accepted
JIRA Plugin Developer July 8, 2014

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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2014

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