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

Suppress the WARN logs when clearing Select List, Radio, Checkbox fields' value using .setFormValue("")

    XMLWordPrintableJSON

Details

    • Bug
    • Status: To Do
    • L3
    • Resolution: Unresolved
    • 6.40.1, 6.55.0
    • None
    • Behaviours
    • SR4J Sprint 152 (8.8.0)
    • 3

    Description

      As a Jira Administrator

      I want the WARN logs thrown to be suppressed when clearing Select List, Radio, Checkbox fields' value using .setFormValue("")
      Example: Option with value '' is not valid for field: customfield_11701

      So that it will reduce flooding the log files with invalid warnings, as the values do get cleared as expected.

      Workaround:
      Use .setFormValue(null) instead when clearing Select List, Radio, Checkbox fields' value

      FROM 6.55.0 onwards: 

      When using .setFormValue("") the warning "Option with value '' is not valid for field" is still shown in the logs. 

      When using .setFormValue(null) the warning "No option found for customfield_10701 with value -1" is shown in the logs

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              imazuki Irfan Mazuki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: