...
On this page:
|
---|
Description
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 advanced workflows documentation.
Configuration
The Follow Up Transition post function has no additional parameters to configure; however, you must have at least one workflow condition configured.
...
We configured our workflow conditions so that only ever one condition can be true. This way, the user will never be stuck at the
Status | ||||
---|---|---|---|---|
|
Conditions
Use conditions to ensure that only ever one transition is possible for the follow-up transition. Let's continue the example from above, where a number field is evaluated. We will configure three conditions; one for each outgoing transition from the
Status | ||||
---|---|---|---|---|
|
Under Five
...
Exactly Five
...
Over Five
...
Simple Yes / No example
A simpler use case is when there are only two transitions leading from status and you evaluate the same condition; one condition is negated.
...
Check it: Follow Up Transition post function
Yes: Condition a == b?
No: Condition a != b?
Fast forward example
Some extra steps in your workflow might only be necessary if a condition is not fulfilled. Otherwise, that step could be skipped.
...
Management approval
See the Conditional 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.
Infinite Loop Detection
An infinite loop can occur when executing the Follow Up Transition post function. An infinite loop results in an endless cycle of issue creation and follow-up transitions following the triggering of the origin issue. When a loop is detected JSU will stop the execution and log an execution failure.
...