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

Custom web panel references are not cleaned up after deleting the web panel

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.4.49
    • Fix Version/s: None
    • Component/s: Fragments
    • Labels:
      None
    • Critical Points:
      0.3

      Description

      Custom web panel is still referenced within other script fragments (such as "Hide system or plugin UI element") after the web panel has been deleted.

      Steps to reproduce:

      • Create a custom web panel
      • Create a script fragment to hide the custom web panel ("Hide system or plugin UI element")
      • Delete the custom web panel
      • Now the script fragment will not show the custom web panel inside the "Hide what" field, but the script fragment still refers to the custom web panel.
        You can see this by running the following script on the script console (check the "FIELD_HIDE_ITEM" property):
        import com.onresolve.scriptrunner.fragments.FragmentsManager
        import com.onresolve.scriptrunner.runner.util.AOPropertyPersister
        
        AOPropertyPersister.loadList(FragmentsManager.AO_PROPERTY_KEY)
        

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            aserrano Andre Dario Moreira Serrano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: