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

Multi Issue Picker field validation is not working correctly i.e. when the field is set to Required using the Field Configurations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • 6.2.0
    • 6.3.0
    • Scripted Fields
    • None
    • SR4J Sprint 80
    • 1.4

    Description

      Steps to reproduce

      1. Create an Issue Picker scripted field with the "Multiple" checkbox ticked.
      2. Add it to a Create/Edit Issue screen.
      3. Go to the Field configuration page and set to required the field.
      4. Create/Edit an issue and leave the Multiple Issue Picker field empty.

      Current Behaviour

      It will still allow the creation/edit to complete instead of warning the user to fill in fields.

      Expected Behaviour.

      If no value is selected for the Multi Issue Picker, the ticket should not be created and an Error Message Should be returned stating that the field is is mandatory.

      Additional information

      A temporary work around for this is to use the ScriptRunner Behaviour and set the field to required. Below is a sample code:-

      def sampleMultiIssuePicker = getFieldById(fieldChanged)
      
      sampleMultiIssuePicker.setRequired(true)
      

      Attached is a print screen of the behavior configuration

      Attachments

        Issue Links

          Activity

            People

              jechlin Jamie Echlin
              rsagar Ravi Sagar [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: