Versions Compared

Key

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

Panel
bgColor#f5f5f5
titleColor#ffffff
borderWidth0
titleBGColor#000000
titleJSU for Jira Server/Data Center

This is the documentation of JSU for Jira Server/Data Center. If you are using JSU on Jira Cloud, see our JSU Cloud documentation.

Info

The 'Follow Up Transition' is available from JSU 2.0

Description

The 'Follow Up Transition' Post Function will evaluate post function evaluates the workflow conditions of all the next transitions on the target status of the current transition. If exactly one condition is valid, that transition will be triggered as a 'follow up'.

...

  • Our issue has a mandatory number custom field.

  • At the end of the 'Go' transition, we have configured to 'Follow Up Transition' Post Function.

  • Each transition leading away from the status 'Junction' have workflow condition:

    • 'Under Five' has the condition: Number field < 5?

    • 'Exactly Five' has the condition: Number field == 5?

    • 'Over Five' has the condition: Number field > 5?

  • When the user performs the 'Go' transition, this will always trigger a follow-up transition.

For example, if the user enters Number=3 during the 'Go' transition, he will end up at the status 'In Progress'. If he enters 42, this will lead him to 'Closed'.

In this example, we have been careful to configure our workflow conditions so that always only and exactly 1 condition can be true. Like this, the user will never get 'stuck' at the 'Junction' state. Instead the 'Follow Up Transition' will lead him to the correct end state.(info) Tip:

Tip

Since any workflow condition can be used for

...

follow-ups, this provides

...

great flexibility

...

.

...

Configuration

You must specify the field and the desired value. For example:

...

Include Page
Perform As User
Perform As User

Position of the

...

post function

There is actually not much to configure for the 'Follow Up Transition' Post Functionpost function. It does not have any parameters. Just make sure ensure that it is the very last post function that will be performed. Otherwise , otherwise you will run into some problems.

...

You can see here the 'Follow Up Transition' Post Function configured as the last post function.

(info)  The transition triggered by the Follow Up Transition cannot have any transition screen. (It is not shown to the user respectively.) In the example above this means the 'Under Five', 'Exactly Five' and 'Over Five' transitions cannot have any transition screen.

(warning) The 'Follow Up Transition' Post Function cannot be used in the Create transition (the one which is performed, when a user creates a new issue).

...

So in this case you do not have a 'Junction' state, but instead, intend that the user can get 'stuck' at the extra step until the condition is fulfilled.

Management Approval

See the Use Case /wiki/spaces/JSU/pages/12682131 for Conditional Approval use case for another real-life example.

Troubleshooting

...

Usually, the problem can be tracked down , by manually walking through what the follow up post function would do:

  • If exactly one condition is valid

  • that transition will be triggered

...

Info

It's important that you do your analysis with the same user

...

that got stuck in the Junction status. There might be issues with permissions, that could lead to a different result, depending on the user performing the transition.

If you now look at such an issue, which got stuck in the Junction status: How many transition buttons does it have? Only if there is exactly one transition button, 'Follow up' will be triggered. If you have none or more than one transition button, you have to must review your workflow conditions on the transitions leading out from the Junction status. If there is only 1 one button, there might be something wrong with that following transition. For example, a validator could prevent the transition to get from getting completed. Try (with the same user, who got stuck in Junction) to click that button to see what happens.

...

Another reason might be that the triggered transition which is triggered does not run through. For example, if it has a validator configured, which fails.

...