Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

A third party extension for Automation for Jira: BundleException

Hi all,

We develop a plugin for Jira Data Center (Git Plugin for Jira). We are developing own Automation for Jira  triggers and managed to implement them following the instructions. Our triggers work. Great.

But we want our plugin to stay enabled when Automation for Jira plugin is disabled. How to achieve it? Is it possible to register automation-rule-component dynamically?



Steps to reproduce

  • install Automation for Jira
  • install our plugin
  • Result: rules with our triggers can be created, actions are executed when it's required. Great
  • disable Automation for Jira

Actual result

  • our plugin is disabled also automatically
  • our plugin can't be installed/enabled. The next exception appears in logs
    2021-09-06 19:04:08,144+0600 http-nio-12990-exec-12 WARN admin 1144x39973x2 c20n8w 0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.xiplink.jira.git.jira_git_plugin-key [c.a.plugin.impl.AbstractPlugin] Because of this exception
    com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.xiplink.jira.git.jira_git_plugin
    	at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(
    	at com.atlassian.plugin.impl.AbstractPlugin.enable(
    	at com.atlassian.plugin.manager.PluginEnabler.actualEnable(
    	at com.atlassian.plugin.manager.PluginEnabler.enable(
    	at com.atlassian.plugin.manager.PluginEnabler.enableAllRecursively(
    	at com.atlassian.plugin.manager.DefaultPluginManager.lambda$enablePlugins$28(
    	at com.atlassian.plugin.manager.PluginTransactionContext.wrap(
    	at com.atlassian.plugin.manager.DefaultPluginManager.enablePlugins(
    	at com.atlassian.jira.plugin.JiraPluginManager.enablePlugins(
    	... 3 filtered
    	at java.lang.reflect.Method.invoke(
    	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(
    	at com.sun.proxy.$Proxy70.enablePlugins(Unknown Source)
    	... 3 filtered
    	at java.lang.reflect.Method.invoke(
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(
    	at java.util.concurrent.ThreadPoolExecutor$
    	at org.apache.tomcat.util.threads.TaskThread$
    Caused by: org.osgi.framework.BundleException: Unable to resolve com.xiplink.jira.git.jira_git_plugin [267](R 267.0): missing requirement [com.xiplink.jira.git.jira_git_plugin [267](R 267.0)] osgi.wiring.package; (osgi.wiring.package=com.codebarrel.automation.api.thirdparty) Unresolved requirements: [[com.xiplink.jira.git.jira_git_plugin [267](R 267.0)] osgi.wiring.package; (osgi.wiring.package=com.codebarrel.automation.api.thirdparty)]
    	at org.apache.felix.framework.Felix.resolveBundleRevision(
    	at org.apache.felix.framework.Felix.startBundle(
    	at org.apache.felix.framework.BundleImpl.start(
    	at org.apache.felix.framework.BundleImpl.start(
    	at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(

Expected result

  • our plugin stays enabled or at least can be installed successfully when Automation for Jira is not installed


1 answer

1 accepted

I resolved the issue by removing this one

<component key="my-automation-trigger" name="My automation Trigger" 
interface = "com.codebarrel.automation.api.thirdparty.EventTriggerRuleComponent"


I left this one

<automation-rule-component key="my-trigger"
name="My trigger"
<param name="projectSafe">true</param>


Also the next dynamic import was configured in pom.xml for jira-maven-plugin


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

428 views 2 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you