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

Fragment Web Item in 'Emails' drop-down menu from 'Email This Issue' plugin doesn't open flag

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Duplicate
    • Affects Version/s: 6.44.0, 6.46.0
    • Fix Version/s: None
    • Component/s: Fragments, Third-Party Apps
    • Labels:
      None
    • Critical Points:
      1.6

      Description

      When using Fragment Web Item to open a dialog box or flag, it will not work when it is placed in the 'Emails' drop-down menu from Email This Issue (previously known as JETI). Instead of popping up the flag, it will access the page directly instead.

      Steps to Reproduce

      1. Install 'Email This Issue' and ScriptRunner
      2. Create a REST endpoint to show a flag using the sample script here
      3. Create a Fragment Web Item:
        • What section should this go in: jetiMenuItem/jetiOutgoingMailSection
        • Condition: return true
        • Do what: Run code and display a flag
        • Link: /rest/scriptrunner/latest/custom/approve
      4. Click on the created Web Item
        • In the Jira Header, click on 'Emails' and it should be there

      Expected Behaviour

      The Web Item would display a flag: 

      Actual Behaviour

      The Web Item accessed the REST endpoint page directly instead:

       

        Attachments

        1. actual.png
          actual.png
          24 kB
        2. expected.png
          expected.png
          14 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              hibrahim Helmy Ibrahim
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: