Hi! I have a small plugin that adds a custom workflow function to Jira. I'm trying to get some user input as text that I can later user. I've set up the plugin skeleton and added a workflow-function module. All is fine, I can see the plugin and module in my local jira. However, if I try adding anything to the input.vm file I cannot get it to be rendered in the input view.
At the moment the input.vm file has this:
<tr>
<td>
<span class="label">Template Body:</span>
</td>
<td nowrap>
<input type="text" name="template_body" value="$template_body"/>
<br><font size="1">Enter the Template Body to be used for the doc file.</font>
</td>
</tr>
And the plugin.xml file contains this for the workflow-function
<workflow-function key="doc-generator-workflow-function" name="Doc Generator" i18n-name-key="doc-generator-workflow-function.name" class="com.myCompany.plugins.jira.workflow.DocGeneratorFactory">
<description key="doc-generator-workflow-function.description">The Doc Generator Workflow Post-Function</description>
<function-class>com.myCompany.plugins.jira.workflow.DocGenerator</function-class>
<resource type="velocity" name="view" location="templates/postfunctions/doc-generator.vm"/>
<resource type="velocity" name="input-parameters" location="templates/postfunctions/doc-generator-input.vm"/>
<resource type="velocity" name="edit-parameters" location="templates/postfunctions/doc-generator-input.vm"/>
</workflow-function>
I followed different docs and the code looked similar in all of them. I can't figure out what else is needed to get the vm file rendered.
Any help is appreciated!
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.