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

Behaviours setRequired considers "None" as a valid selection for Select Lists in JSD portal

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.3.13
    • Fix Version/s: 5.4.34
    • Component/s: Behaviours
    • Labels:
      None
    • Environment:

      SR 5.3.13

      JIRA 7.9.0

      SD Version: 3.12.0

    • Critical Points:
      0

      Description

      Steps to Reproduce

      • Add a behaviour mapping to a JSD portal 
      • After making sure a Select List is present in the customer view, write an initializer script to make the Select List required
        def field = getFieldByName("SelectListA")
        field.setRequired(true)
      • Save behaviour and attempt to create an issue through the JSD portal
      • Issue can be created without setting a value for the Select List:

      Problem: JSD behaviours see default value "None" as a valid entry, so it thinks a value for the Select List has been selected

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ahasan Ashraful Hasan [X] (Inactive)
              Reporter:
              jyamdogo Joshua Yamdogo
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: