The latest SDK 3.11 says it supports on JIRA 5.0, does it mean i cannot write plugins for 5.0.X or 5.1 ?

I have written a plugin using SDK 3.11 which supports JIRA 5.0 and when i deploy in JIRA 5.0.6 i get the below error

Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.misys.alm.jira.migration.JIRAMIGRATION [87]: Unable to resolve 87.0: missing requirement [87.0] package; (&(package=com.atlassian.crowd.embedded.api)(version>=5.0.0)(version<=5.0.0))

does it mean i cannot write plugin for version >5.0.0

1 answer

0 vote

No, the plugin kit supports Jira 4 through to 5.latest. Your code needs to be updated to deal with the newer API

Thanks Nic,

I get the below exception

Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.misys.alm.jira.migration.JIRAMIGRATION [87]: Unable to resolve 87.0: missing requirement [87.0] package; (&(package=com.atlassian.crowd.embedded.api)(version>=5.0.0)(version<=5.0.0))

looks like there is a version mismatch, also in the pom.xml should i change the below element in pom.xml ($jira.version)to anything else..how do i change the jira version so that i deploy on 5.latest version ? also attaching pom.xml (pom.txt)

<dependency>

<groupId>com.atlassian.jira</groupId>

<artifactId>jira-api</artifactId>

<version>${jira.version}</version>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>com.atlassian.jira</groupId>

<artifactId>jira-core</artifactId>

<version>${jira.version}</version>

<scope>provided</scope>

</dependency>

The pom.xml should contain the Jira version you are aiming to run the plugin on, as a property. If you've used the sdk to generate it, it's probably near the bottom (And is obviously called jira.version)

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 May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

820 views 2 9
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