What is it?
The problem you need to solve: Be able to move an Issue during a transition in order to implement by example an Auto-Triage workflow.
How Minyaa solves this problem: The Workflow Post-Function is reproducing the JIRA Move action.
Configuring the Feature
Before configuring the Move Issue Workflow Post-Function, you have to take in account some constraint :
- Move Issue Workflow Post-Function does perform the move without user interaction ...
- It means that you are not able to be asked for any selection during the move,
- The Source Field Configuration needs to match with the Target Field Configuration,
- The configured Issue Type and Status have to be conherent for the target Project,
- No control can be done during the Post-Function configuration, since it is not known with which project you want associate the Workflow,
- ... to use with care !!
Now, you can go forward in the configuration by following these steps :
- Add the Move Issue Workflow Post-Function to any wanted transition, where you want intiate an issue move.
For more information on adding a Post Function in Workflow, please see JIRA: Adding a Post Function
- Its configuration allows you to specify ...
- The Project where you want move the issue,
- The Issue Type to use for the target Issue,
- The Status in which the Issue has to be set,
For all these parameters, you can specify that it has to be moved in the same Project, Issue Type or Status.
- When added, the Post-Function should be among the latest defined Post-Functions (its weight is set to 1000).
- You will end up with a transition looking like:
And the XML Declaration as follow :
<post-function >
<function type="class">
<arg name="targetProjectId">10130</arg>
<arg name="targetStatusId">3</arg>
<arg name="class.name">com.minyaa.workflow.function.MoveIssueFunction</arg>
<arg name="targetIssueTypeId">2</arg>
</function>
</post-function>