I am using the "Copy a parsed text to a field" post-function of the JIRA Workflow Toolbox plugin in one of my workflows. The target field is a custom field of type Label.
However the transition fails with a NullPointerException:
2015-01-18 15:55:56,824 http-apr-8081-exec-21 ERROR admin 955x990x1 eu5bu6 109.189.143.99,192.168.105.7 /secure/CommentAssignIssue.jspa [atlassian.jira.workflow.OSWorkflowManager] Caught exception while attempting to perform action 5 from workflow 33703 on issue 'VE-15'
java.lang.NullPointerException
at java.util.StringTokenizer.<init>(Unknown Source)
at java.util.StringTokenizer.<init>(Unknown Source)
at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.processValueToBeAssigned(GeneralizedField.java:3468)
at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.setValue(GeneralizedField.java:2337)
at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.setValue(GeneralizedField.java:2290)
at com.fca.jira.plugins.workflowToolbox.CopyParsedTextFunction.writeParsedText(CopyParsedTextFunction.java:89)
at com.fca.jira.plugins.workflowToolbox.CopyParsedTextFunction.execute(CopyParsedTextFunction.java:71)
at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050)
at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)
at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:564)
at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:957)
at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:912)
at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:450)
at com.atlassian.jira.web.action.issue.CommentAssignIssue.doExecute(CommentAssignIssue.java:192) <+1> (ActionSupport.java:165)
If I change my target field to be the system JIRA Labels field (00080) instead of my custom field, the transition is successful, and the Labels field is set correctly.
Any ideas as to what I am doing wrong?
The following image shows the complete list of post-functions for this transition:
image2015-1-18 17:0:55.png
Post-function 2 is the one that causes the NullPointerException. Post-function 1 works just fine.
Thanks for any help!
Helene,
That is a bug. It was fixed in JIRA Workflow Toolbox 2.1.21. Currently, the most recent version of the plugin is 2.1.25. I recommend you to upgrade that version, since it provides many improvements and bug fixes.
If you need support about the plugin, you can create an issue at http://support.workflowarts.com
Regards,
Fidel
I see that version 2.1.24 contains the following in the release notes:
Labels custom fields rendering was failing.
So I tried to upgrade to the latest version, and that resolved the problem.
Should have checked that before!
But thanks for the incredibly fast reply
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, sorry, forgot to include that.
JIRA version 6.2.7
JIRA workflow toolbox version 2.1.20
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Helene,
Which versions of JIRA Workflow Toolbox, and JIRA are you using?
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.