Migration of dashboards from portlet to gadget

Hi all,

I'm migrating from Jira v3.13.5 to Jira v5.1 and I have an issue with the migration of my users' dashboards. I have an old custom plugin that display a portlet in the dashboard of most of my users. I have upgraded that old plugin to make it use the new gadget API, and the whole works like a charm.

But after the migration of data from v3 to v4 and to v5, all my dashboards that were using the portlet/gadget display the following error: "invalid/legacy/portlet/Please_remove_this_gadget_from_your_dashboard"

How could I migrate my users' configuration to use the new gadget and keep theire settings? What is the expected procedure to do this? I really can't tell my 500+ users to manually adapt their setting for all of their dashboards...

Any idea? Thanks!

PS : I didn't change my portlets/gadgets keys in the config...

1 answer

1 accepted

This widget could not be displayed.

I guess you need to write a plugin upgrade task - https://confluence.atlassian.com/display/JIRA/Writing+a+Plugin+Upgrade+Task+for+JIRA+4.0 (this link actually as a sample upgrade task describes the process of converting portlet config to gadget).

To make it harder - Portlet-specific classes were removed in JIRA 5.0, so if you use them (and not manipulate DB directly) you would need to do the upgrade in 2 phases - so that your plugin upgrade task runs in 4.x first before eventually being used in 5.0.

After some tests I was able to make it work :)

Thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

32 views 0 0
View post

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