Replacing atlassian-plugin.xml descriptor with code?

Hi,

Is it possible to create a plugin component (i.e: an issue tab panel) programmatically instead of declaring it in the atlassian-plugin.xml descriptor?

Regards,
Pablo

So… small disclaimer here: I’ve never got this to work, but I have been looking into it.

Basically, you’d want to download the Jira source code and unpack the atlassian-plugins-core-5.2.1-sources.jar file. This contains all the code that manages the translation of atlassian-plugin.xml to classes and provides the factories that are used by Jira to get the required rendering information.

You might be able to actually push plugin components into this, but I’m not entirely sure if it will work because of OSGi limitations, private API’s and application lifecycle.

3 Likes

I’ll investigate it. Thanks you @remie!