Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-25965

If a workflow step only has a global transition out, no transition is available in production. (Workaround suggested in Description)

    XMLWordPrintable

Details

    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:

      1. Copy the default workflow
      2. Add a new status/step(eg. Test) with an incoming transition(eg. to Test) but no outgoing transition from that step
      3. Add a global transition to Closed step(eg. to Close)
      4. Create a workflow scheme(eg. test scheme) and associate to this workflow
      5. Associate the "test scheme" to a project
      6. Create new issue and transition to Test status.
      7. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bab35f290603 Andrew Webster
            Votes:
            9 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: