Versions Compared

Key

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

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

...

The Follow Up Transition post function evaluates the workflow conditions of all the next transitions on the target status of the current transition, including global transitions. If exactly one transition is possible, that transition will be triggered as a follow-up. If more than one transition is possible, JSU cannot determine which to use as the follow-up transition. To learn more about global transitions in Jira workflows, see Atlassian’s https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced

...

-issue-workflows/#Global-transitions.

See Workflow post functions to learn how to add a JSU post function to a Jira workflow.

Configuration

The Follow Up Transition post function has no additional parameters to configure; , however, you must have at least one workflow condition configured.Consider the following workflow:

Use case

...

  • Our issue has a mandatory number custom field.

  • At the end of the Go transition, we have configured a Follow Up Transition post function.

  • Each transition leading away from the status

    Status
    colourYellow
    titlejunction
    has a 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 a user performs the Go transition, this will always trigger a follow-up transition.

...

  • a == b? 

You can use Jira’s Value Field conditions Field condition for this setup.

...

  • Check it: Follow Up Transition post function.

  • Yes: Condition a == b?

  • No: Condition a != b?

...

Management approval

See the Conditional Approval Process Streamline an approval process use case for another real-life example.

Tip

You can learn more about workflow conditions in Atlassian’s Configure Advanced Issue Workflows article.

Troubleshooting

Problem: Workflow is blocked at the Junction status

Cause: Not exactly one condition

Usually, the problem can be tracked down by reviewing the expected outcome of the post function;
if exactly one condition is valid, the corresponding transition will be triggered.

...

If there is only one button, there might be something wrong with that transition. For example, a validator could prevent the transition from getting completed.

Cause: Triggered transition fails

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

...