Define a global velocity variable to use in the WorkflowPluginFactories

Hi,

I want to reuse code between multiple add-on projects. So basically they get a branch and a new atlassian-plugin.xml file which enabled/disables different features. The add-on key changes and is unfortunatly hard coded in the velocity templates like $webResourceManager.requireResource("my.plugin.key:my-resource-key")

I would like to keep the “my.plugin.key” variable. Instead of adding it in every single Implementation of AbstractWorkflowPluginFactory I want to find a way to have it in every velocity template related to my WorkflowPluginFactory Implementations. Any suggestions?

Thanks, Lukas

1 Like