Details
-
Bug
-
Resolution: Obsolete
-
Low
-
4.3.4, 4.4.5
-
Windows 7, FireFox 7, back end in SQL Server
-
4.03
-
Description
If a workflow step is configured in the Workflow Designer to only have a global transition out, then no transitions appear in the workflow buttons on the issue's screen.
Bug found by adding a global transition (Cancel) to a Cancelled status. All workflow steps except one (Cancelled) have at least one other normal transition out to another step. They all show their normal transitions and the global transition. Cancelled has a transition out to a step called "Edit (after Cancel)". It was assumed that the global Cancel transition would show up so the user can return the Issue to Cancelled. However, in practice, if the user transitioned to "Edit (after Cancel)" then the Issue was stuck there with no workflow step available.
This was fixed by noticing that "Edit (after Cancel)" was the only step with no normal transition out. Moreover, even though there was a global transition in place, "Edit (after Cancel)" could not have any transitions added in draft, suggesting that Jira was ignoring the global transition when deciding on the rules about how to handle a step with no normal transitions out. It was fixed by taking a copy of the workflow, then adding a circular transition from "Edit (after Cancel)" back to itself and hiding it with a condition. Then a new workflow scheme was created, and the copy of the workflow added to it, and the scheme applied to the relevant projects.
Once that was done, the global transition Cancel re-appeared as a workflow button on the Issue screen.
Replication Step:
- Copy the default workflow
- Add a new status/step(eg. Test) with an incoming transition(eg. to Test) but no outgoing transition from that step
- Add a global transition to Closed step(eg. to Close)
- Create a workflow scheme(eg. test scheme) and associate to this workflow
- Associate the "test scheme" to a project
- Create new issue and transition to Test status.
- There will be no outgoing transition in Test step.
Workaround:
adding a dummy transition with a "Hide"condition then allows the global transition to appear.