Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Usage cases

You want to

go back to the previous Step where the Issue was before the current one.

Classically, you have implemented a suspensive Step like SuspendedRequest Information,  ...

For workflow like beside, with JIRA out of the box, you will have :

  • to create a transition from each Step where you want to implement a suspensive Steps.
  • During these transitions, you would have to memorize from which Step you come from.
  • From this suspensive step, you would have to create a transition from which you come from, with condition based on the memorized Step.

implement some Triage of your incoming JIRA Issues with a move of them in the correct Project/Issue Type :

  • You want to allow your users to move quickly an Issue to another Project and/or other Issue Type,
  • You want to implement an Auto-Triage for incoming Mail, by using Auto-Transition and Issue Move
In worth cases, for a such workflow, you would have to manage at least 24 transitions. Good luck ..
  • .

How it works

By defining this Back To Previoususing this Move Issue Post-Function in your workflow, you will be able to force as new Step, the Previous Step where the Issue was before to reach the current Step.It will be, also, more simple to have :move it to another Project and/or other Issue Type,

  • One Global Transition to the suspensive Step or few Transition from a part of Steps
  • One recursive Transition from this suspensive Step to itself with the Back To Previous Post-Function

Configuring the Feature

Warning
title
To use this Back To Previous
Before continuing ...

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 !!

To use this Move Issue Post-Function, please follow these steps :

  • Create you suspensive Step,
  • Append incoming transitions (One Global Transition or few Step Transitions, depending your needs)
  • Append a Recursive Transition
  • It will give by example such below Steps

  • On this Recursive Transition, you You will have just to add  the Back to Previous Step to Move Issue Post-Function to any wanted transition
    For more information on adding a Post Function in Workflow, please see JIRA: Adding a Post Function
    Image Added
  • 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.
    Image Added
  • When added, the Post-Function

    has to

    should be among the

    first one of

    latest defined Post-

    Function

    Functions (its weight is set to

    1

    1000).

  • You will end up with a transition looking like: 
    Image Added
    And the XML Declaration as follow : 

    Code Block
    languagexml
    <post-function >
        	<function type="class">
    	    <arg name="targetProjectId">10240</arg>
    	  <arg name="full.module.key">fr.alkaes.minyaa.jira-plugin-minyaa-workflowsback-to-previous-step-issues-function<workflowsmoveIssueFunction</arg>
    	  <arg name="targetIssueTypeId">24</arg>
    	  <arg name="targetStatusId">10215</arg>
    	  <arg name="class.name">fr.alkaes.myaawf.workflow.postfunction.BackToPreviousStepFunction<MoveIssueFunction</arg>
        	</function>
    </post-function>
  • When the Post-Function will be executed, it will check for Transition History, and will identify the previous Step (different from the current), and then it will create a new Step occurrence in the Workflow, like if there was some outgoing transition to this previous Step.


Info
titleSee also ...
Excerpt
hiddentrue

Post-Function allowing a transition Back To Previous Step.

Panel

On this page:

Table of Contents