How to port custom Jira gadget from version 4 to version 5

Lloyd Roles
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2012

Hi all,

I wrote a custom Jira gadget a few months ago which was built for Jira v4.4. Since then, we have updated to v5 and I would like to make use of some of the new REST API calls to improve performance.

How do I go about updating my gadget so that when I use atlas-run, it will build in a Jira v5 environment? I vaguely remember atlas-create-jira-plugin prompting me for the Jira version when I initially wrote it.

I'd rather not have to create a plugin skeleton from scratch again, because I'll have to merge my changes back into it. Is there a config I can simply change in my plugin package?

Cheers

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2012

Change the version in pom.xml to match 5.x (your version) and then do an atlas-clean before you do atlas-run.

Lloyd Roles
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2012

Thanks Jobin. Just rebuilding...

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.
December 10, 2012

Yes, look at the pom.xml - one of the properties in there will be the target version of Jira.

Change that to 5.0, 5.1 etc, and look nearby for the version of the data and update that to at least the same major version (at some point, you might want to set the data version back to 4.4 to test upgrades, but for the initial development, use 5.x for speed). Use atlas-clean to ensure you've got the right data and installations available.

TAGS
AUG Leaders

Atlassian Community Events