Is it possible to conver type1 plug-in type2 plug-in?

Hi All,

We have plug-in it is type1 so we are installing it in lib folder.So we would like to convert to type2.

Is it possible?

Best Regards,

Suresh.

3 answers

This widget could not be displayed.

Yes, just you need to add the attribute "plugins-version="2"" in atlassian-plugin.xml

ex:the first line should be like follows

<atlassian-plugin key="${project.groupId}.${project.artifactId}"
	name="${project.artifactId}" plugins-version="2">

If i did like that i am getting attachec exception.What might be the reason

HTTP Status 404 - Could not execute action [ConfigCustomSubTask]:Action 'com.go2group.jira.plugin.CreateSubTaskActionConfig' not found
or could not be initialized a class with that name could not be found.<p><small><small><pre>java.lang.IllegalArgumentException: Action '
com.go2group.jira.plugin.CreateSubTaskActionConfig' not found or could not be initialized a class with that name could not be found. at
com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:425) at
webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:99) at
webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:59) at
webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:60) at
webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:92) at
webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:60) at
webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at
webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at
com.atlassian.jira.config.webwork.JiraActionFactory$SafeParameterSettingActionFactoryProxy.getActionImpl(JiraActionFactory.java:139) at
webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:53) at
com.atlassian.jira.config.webwork.JiraActionFactory.getActionImpl(JiraActionFactory.java:339) at
webwork.action.factory.ActionFactory.getAction(ActionFactory.java:62) at
webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:130) at
com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service

After change i am getting following exception :(

HTTP Status 404 - Could not execute action [ConfigCustomSubTask]:Action 'com.go2group.jira.plugin.CreateSubTaskActionConfig' not found or could not be initialized a class with that name could not be found.<p><small><small><pre>java.lang.IllegalArgumentException: Action 'com.go2group.jira.plugin.CreateSubTaskActionConfig' not found or could not be initialized a class with that name could not be found. at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:425) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:99) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:59) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:60) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:92) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:60) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at com.atlassian.jira.config.webwork.JiraActionFactory$SafeParameterSettingActionFactoryProxy.getActionImpl(JiraActionFactory.java:139) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:53) at com.atlassian.jira.config.webwork.JiraActionFactory.getActionImpl(JiraActionFactory.java:339) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:62) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:130) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service

I am getting following exception


HTTP Status 404 - Could not execute action [ConfigCustomSubTask]:Action 'com.go2group.jira.plugin.CreateSubTaskActionConfig' not found
or could not be initialized a class with that name could not be found.&lt;p&gt;&lt;small&gt;&lt;small&gt;&lt;pre&gt;java.lang.IllegalArgumentException: Action '
com.go2group.jira.plugin.CreateSubTaskActionConfig' not found or could not be initialized a class with that name could not be found. at
com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:425) at
webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:99) at
webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:59) at
webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:60) at
webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:92) at
webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:60) at
webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at
webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at
com.atlassian.jira.config.webwork.JiraActionFactory$SafeParameterSettingActionFactoryProxy.getActionImpl(JiraActionFactory.java:139) at
webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:53) at
com.atlassian.jira.config.webwork.JiraActionFactory.getActionImpl(JiraActionFactory.java:339) at
webwork.action.factory.ActionFactory.getAction(ActionFactory.java:62) at
webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:130) at
com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service

What is CreateSubTaskActionConfig and where is it found in the JIRA installation?

I have written this class for creating customized subtask.

public class CreateSubTaskActionConfig extends
CreateSubTaskAction

This widget could not be displayed.

Hi Suresh,

I assume this class does not live in the same jar as your v2 plugin? Plugin 2 plugins cannot see plugin 1 plugins easily as they use different class loaders.

So you could either bundle your CreateSubTaskActionConfig class in your v2 plugin or you could have it in a separate v2 plugin with OSGi headers configured in the POM to export the class(es) you want to share.

See this question for a bit more info on getting v2 plugins to see other classes and here for setting OSGi headers.

Hi Thomas,

I have plug-in it is plug-in1 type.So i need to convert in to the plug-in 2 type.

what are the steps i need to follow.

I have changed plug-in version in to 2 in atlassian.plug-in.xml.

It is type of subtask creation inside MoreAction button in the view issue screen.

All the classes are there in the same package.There is no dependecy betwwen the plug-ins.

This widget could not be displayed.

Steps to follow:

You need to add plugins-version=2 like Rambanam Prasad says.

You need to delete the jar from WEB-INF\lib and install it in <jira home>\plugins\installed-plugins instead.

You need to resolve any errors due to classes contained in other jars/plugins no longer being found (as I described earlier). That's it, that's what worked for me.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

513 views 3 18
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