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

Script Fragment Show a Web Panel require a refresh to load on portal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Triage
    • Low
    • Resolution: Unresolved
    • 6.55.0, 7.13.0
    • None
    • Script Fragments
    • SR4J Sprint 146 (8.2.0)
    • 7.2

    Description

      Script Fragment 'Show a web panel' require a browser refresh to load due to binding variable returning null.

      Only replicable for Jira JSM version 4.14 and above. Not replicable on Jira JSD version 4.13 

      Steps to Reproduce

      1. Create a Script Fragment 'Show a web panel' 
      2. Configure condition using:
        binding.variables.get("portal") 
      1. Configure class/script using:
        writer.write("<div style='background-color: yellow; text-align: center'>" + "Hello world!This is temporary banner" + "<div>") 

      Expected Behaviour

      The script fragment will load accordingly and binding variable is returned.

      Actual Behaviour

      The script fragment failed to load accordingly and binding variable is null. Require a browser refresh for it to load.

      Workaround

      1. Setting the condition to return true
      2. Configure additional condition in the provider class/script

      Additional Info

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              amustapha Amir Mustapha
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: