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

setFormValue(null) fails after setConfigParam() on Single Issue Picker field

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: 6.23.0
    • Fix Version/s: 6.26.0
    • Component/s: None
    • Labels:
    • Sprint:
      SR4J Sprint 98
    • Critical Points:
      0.7

      Description

      Behaviour's setFormValue(null) fails after dynamically change JQL filter with setConfigParam('currentJql', "project=xxx") on Single Issue Picker field.

       

      Steps to Reproduce
      1. Create a "parent" Single Issue Picker field, for example named "Just Single Issue Picker". Note: Not necessary an issue picker, tried text field, same problem.
      2. Create a "child" Single Issue Picker field, for example named "Another Single Issue Picker".
      3. Attach following script to "parent":

      getFieldByName("Another Single Issue Picker").setConfigParam('currentJql', "project='xxx'")
      getFieldByName("Another Single Issue Picker").setFormValue(null)
      

      Change order of execution still reproduce the problem.

       

      Expected Behaviour
      Whenever "parent" field value changes, "child" Single Issue Picker field is cleared.

       

      Actual Behaviour
      First change doesn't clear "child", second change clear "child".

       

      Workaround
      Use FormField.setError() on "parent" and FormField.clearError() on "child" to notify user to change "child" value.

       

      Additional Info
      A screen recording to illustrate this bug and workaround: setFormValue fail.mov

       

        Attachments

          Activity

            People

            Assignee:
            jechlin Jamie Echlin
            Reporter:
            mlim Max Lim
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: