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"
But then i get an error when JIRA starts up, about this fragment. Excerpt of the log:
Caused by: Assertion failed:assert descriptorClass
at com.onresolve.scriptrunner.fragments.IFragmentsManager$register.call(Unknown Source)
and i dont know what to do with this error
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.
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...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG