Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-4965

Behaviour not working when launching Fragment "Constrained Issue Dialog" from Structure and Search results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Triage
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.9.1-p5
    • Fix Version/s: None
    • Component/s: Fragments
    • Labels:
      None
    • Critical Points:
      0.6

      Description

      Create a Script Fragment - "Constrained Issue Dialog" and a Behaviour to pre-fill fields value. The Behaviour is working fine when the dialog button is clicked on View Issue Screen, but the values are not pre-filled when the dialog button is clicked from Structure, Search Issue Navigator (List View) and System Dashboard (issues in the gadgets).

      Steps to Reproduce

      1. Create a Constrained Issue Dialog based on this example and a Behaviour from this document.
      2. Install Structure. Then, create a Structure and add some issues that contain the Constrained Issue Dialog button into the Structure.
      3. Go to the Structure and click the Constrained Issue Dialog button.
      4. Go to the issue navigator, make sure it's in list view, and click the Constrained Issue Dialog button.
      5. Go to the System Dashboard > Assigned to Me gadget > click the Constrained Issue Dialog button.

      Expected Behaviour

      Create Issue Dialog should pop up with pre-filled values.

      Actual Behaviour

      Create Issue Dialog doesn't pop up. The browser is navigating to another Create Screen and the pre-filled values do not display.

      Additional Info

      • Replicated in Scriptrunner version 5.9.1-p5 and 6.16.0.
      • getBehaviourContextId() and getContextIssueId() are getting NULL and therefore values are not pre-filled.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jpang JJ Pang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: