Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I check my plugin compatibility with different JIRA version?

sneha May 27, 2015
 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Volodymyr Krupach
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.
May 27, 2015

You have to test it with each supported JIRA version. To do this I run development instances with different JRIA versions by changing jira.version in the pom.xml.

Also I have prepared JIRA hsql database files (file is named database.script) with test data for each JIRA version. I substitute them during JIRA startup. You need to do substitution after maven build creates target/jira/home dir and before JIRA started. Otherwise you will need to stop JIRA, substitute the file and start it again. Sometimes it's enough to have database.script for smallest JIRA version and higher versions do necessary upgrades during start.

This is time consuming but I do not know better solution.

sneha May 27, 2015

Thanks Volodymyr

Roman Samorodov
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.
July 20, 2016

And what about compatibility between 6.x and 7.x versions? Are there any problems, don't you know?

Volodymyr Krupach
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.
July 20, 2016

> compatibility between 6.x and 7.x versions? A
There are major API changes and you will not be able to write JIRA 6.x - 7.x compatible code except trivial addons.

I know 2 ways:

  • Separate addon versions for JIRA 6.x and JIRA 7.x
  • Use jira-cross-compatibility project. It's part of JIRA sources so you can check check java sources and usage there.
1 vote
Hangsu Ma
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.
May 28, 2015

I find JIRA API backward compatibility is very good. I am always developing and testing with the lowest version of JIRA i want to support, then do quick test with higher version. Always worked so far!
For the database migration, I am also using same data zip (generated from the lowest version i need to support), and let newer version of JIRA do the migration during startup, in this way, i am hoping my code will be ok during jira version upgrade

Volodymyr Krupach
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.
May 28, 2015

> I find JIRA API backward compatibility is very good Not always :-)

TAGS
AUG Leaders

Atlassian Community Events