Details
-
Bug
-
Resolution: Fixed
-
Low
-
3.8
-
3.08
-
Description
The getActionIdByName() method in the class com.atlassian.jira.jelly.tag.issue.TransitionWorkflow doesn't validate the status of an issue before returning the action back to the calling function.
For instance, in JIRA default workflow, an issue in the status of "Resolved" (step '4'), its "Close Issue" action is having the id '701'. Specifying "Close Issue" in the workflowAction attribute will return this error message:
org.apache.commons.jelly.JellyTagException: null:2:0: The following problems were found: Action 2 is invalid
This is reproducible by using the Jelly script below:
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib"> <jira:TransitionWorkflow key="TPJ-2" user="admin" workflowAction="Close Issue" /> </JiraJelly>
We can get around this by specifying id instead of the action name.