View Issue Details Block customisation on atlassian bundled plugins

I need to edit the view of the details block section of View Issue page on JIRA 5.2.2. Hence i modified detailsblock.vm file of jira-view-issue-plugin-5.2.2.jar which is bundled in atlassian-bundled-plugins.zip.

I modified the detailsblock.vm file and recreated the jar and bundled in the zip file. Now i am able to see the changes i have made but in the logs i see the following exceptions.

2013-01-18 20:14:22,854 localhost-startStop-1 ERROR [plugin.osgi.factory.OsgiPlugin] Detected an error (BundleException) enabling the plugin 'com.atlassian.jira.plugin.ext.bamboo' : Unresolved constraint in bundle com.atlassian.jira.plugins.jira-bamboo-plugin [63]: Unable to resolve 63.0: missing requirement [63.0] package; (package=com.atlassian.jira.plugin.viewissue.issuelink). This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn't meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see http://confluence.atlassian.com/x/1xy6D

Please find the attached exception for more information. (bundledexception.txt)

How to resolve this?

4 answers

0 vote

Did you change the version of the plugin? Or change any packages inside it?

I have not changed any other files. I modified detailsblock.vm file only.

Error points to missing package: com.atlassian.jira.plugin.viewissue.issuelink

Yes but i did not understand that. Can you give me some pointers about where the issue could be?

As a last resort, try inline editing using 7-zip in Windows. This will avoid any issue or other tampering with jar.

0 vote
Renjith Pillai Community Champion Jan 22, 2013

Are you sure Srini that you didnt change any other files? Are you very sure :)

Looks dumb to suggest this. Can you compare the output of the unzip -l command for the original bundled zip and the modified one?

Yes Renjith, I just changed only one file and repacked the contents.

If the plugin isn't loading, it's likely mispacked; ergo, please try to recompile it using jar -c. If that doesn't do the trick, I would recommend injecting it directly into your <jira-home>/installed-plugins folder and then starting JIRA back up.

Could you please let me know which plugin you mean to inject into <jira-home>/installed-plugins location?

I had the same problem. Don't recreate JAR package. Use -u option:

jar uf jira-view-issue-plugin-X.X.X.jar viewissue/detailsblock.vm

Then, recreate ZIP package with that JAR.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,308 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot