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

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

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

How to resolve this?

4 answers

0 votes

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.

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 Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,285 views 5 10
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