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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

71 views 0 5
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