im trying to define a new mail handler class through scriptrunner.
i have a test script under a script root that extends AbstractMessageHandler and implements MessageHandler
now im trying to add a message handler module to the plugin descriptor (reference https://developer.atlassian.com/jiradev/jira-platform/guides/email/tutorial-custom-message-mail-handler-for-jira). I did this via a script fragment
<message-handler i18n-name-key="demohandler.name" key="demoHandler"
class="com.company.GroovyMessageHandler"
add-edit-url="/secure/admin/EditHandlerDetailsUsingParams!default.jspa" weight="0"/>
But then i get an error when JIRA starts up, about this fragment. Excerpt of the log:
at java.lang.Thread.run(Thread.java:724)
Caused by: Assertion failed:assert descriptorClass
|
null
at com.onresolve.scriptrunner.fragments.FragmentsManager.register(FragmentsManager.groovy)
at com.onresolve.scriptrunner.fragments.IFragmentsManager$register.call(Unknown Source)
and i dont know what to do with this error
FYI, as of 5.5.7 there is now a ScriptRunner mail handler.
Hi Lance,
Unfortunately, adding modules to the deployment descriptor is unsupported in ScriptRunner. It may be possible to do what you need but it might be easier to create custom mail handlers using something like JEMH.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.