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

Setting destination step to -1 in Workflow XML causes diagram layout to be unreadable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 9.4.3, 9.4.4
    • None

    Description

      Issue Summary

      When the workflow diagram is displayed, many transitions are not showing.
      Exported workflow to XML and move a newly created transition to the <common-actions> area. Then I altered the destination step inside the <unconditional-result> tags to -1 so that each occurrence of the common-action would transition to the calling step.

      This is reproducible on Data Center: (yes).

      Steps to Reproduce

      1. Copy the jira workflow to Test jira.
      2. Add an outgoing transition called Test to the Open step with destination Open and no screen. See attachments Workflow1.png and Workflow7.png
      3. Export the new workflow to XML.
      4. Use an editor to move the new transition <action> to the <common-actions> section of the workflow. Eg. # id=711.
      5. Insert the <common-action id="711" /> directive into the start of the <actions> block of each step in the XML workflow.
        Import the altered code to a new workflow called Jira test One.
      6. Edit the Test jira One workflow in text mode and you will see your new transition appear as a common transition in each step, all with the destination Open. See attachment Workflow8.png
      7. View the Test jira One workflow in diagram mode and you will see a simplified copy of the workflow diagram showing all steps just not neatly laid out like the original. See attachments Workflow2.png and Workflow3.png
      8. Edit the XML code and locate your Test transition in the <common-actions> block.
        Alter the step in the <unconditional-result> tag from 1 to -1.
        Import the altered code to a new workflow called Jira test Two.
      9. Edit the Test jira Two workflow in text mode and you will see your transition now transitions to the Step from which it is executed. This is what we were trying to achieve. See attachment Workflow9.png
      10. However, view the Test jira Two workflow in diagram mode and you will see that everything has been bunched into the top left hand corner. See attachment Workflow4.png
      11. If you drag the screen down and to the right all of the statuses (steps) are showing on top of each other. See attachment Workflow5.png

      Expected Results

      Readable and complete workflow layout.

      Actual Results

      Dragging each of the steps away from each other, you will notice that the only transition now showing is the Start Progress from Open to In Progress. See attachment Workflow6.png

      Workaround

      Partial workaround is to un-stack overlaid states every time the the view is refreshed. However not show all transitions.

      Attachments

        1. step 0 - test workflow before edit.xml
          14 kB
        2. step 3 - test workflow after edit 1.xml
          15 kB
        3. step 4 and 5 - test workflow after edit 2.xml
          15 kB
        4. step 8 - test workflow after edit 3.xml
          15 kB
        5. Workflow 1.png
          Workflow 1.png
          19 kB
        6. Workflow 2.png
          Workflow 2.png
          14 kB
        7. Workflow 3.png
          Workflow 3.png
          20 kB
        8. Workflow 4.png
          Workflow 4.png
          10 kB
        9. Workflow 5.png
          Workflow 5.png
          12 kB
        10. Workflow 6.png
          Workflow 6.png
          18 kB
        11. Workflow 7.png
          Workflow 7.png
          33 kB
        12. Workflow 8.png
          Workflow 8.png
          36 kB
        13. Workflow 9.png
          Workflow 9.png
          39 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ab3caa3f2bcd elindsay
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: