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

Behaviour SetHelptext method return Unncessary Log in browser console

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Triage
    • Medium
    • Resolution: Unresolved
    • 6.40.0
    • None
    • Behaviours
    • None
    • 2.2

    Description

      Behaviour SetHelptext method returns an Unnecessary Log in to the browser console.

      Steps to Reproduce

      1. Configure a behaviour with the following settings:
      2. Set an initialiser which use setHelpText on a field
        getFieldById("TextFieldB").setHelpText("<script>alert('Hello')</script>")
        
      3. Save the behaviour
      4. Go to create issue screen, and wait for the behaviour to trigger
      5. Observe browser console log

      Expected Behaviour

      No console log printed related to the help text

      Actual Behaviour

      The browser console log will print out the following logs

      Workaround

      1. Use setDescription instead

      Additional Info

      • I have tested and the issue does not happen on ScriptRunner 6.11

      Attachments

        Activity

          People

            Unassigned Unassigned
            kdanial KD Danial
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: