@WithPlugin works strange after JIRA restart

Dmitry May 18, 2017

Could someone help with strange behavior:

1. After JIRA restart I try to execute following script (in Script Console):

import com.onresolve.scriptrunner.runner.customisers.PluginModule
import com.onresolve.scriptrunner.runner.customisers.WithPlugin
import de.unitymedia.jira.unimate.soapint.SoapEndpointCaller

@WithPlugin("de.unitymedia.jira.unimate.soapint")

def myBackgroundJob() 
{
Thread.start 
{
SoapEndpointCaller spc = new SoapEndpointCaller(); 
spc.triggerUnimateUpdate(Long.valueOf("124")); 
}
}
myBackgroundJob();

But got compiled error: , unable to resolve class de.unitymedia.jira.unimate.soapint.SoapEndpointCaller

 

2. After that I add

@PluginModule

SoapEndpointCaller src

Code compiled, but during execution got error:

Can't find plugin module or OSGi service for class: de.unitymedia.jira.unimate.soapint.SoapEndpointCaller, check the plugin is installed / enabled /

3. Next I remove

@PluginModule

SoapEndpointCaller src

and code compiled and executed sucessfully

0 answers

Suggest an answer

Log in or Sign up to answer