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

Triggering Validation Error removes pre-existing Behaviour configuration in Create Issue Page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Awaiting Release
    • Low
    • Resolution: Fixed
    • 6.33.0
    • None
    • Behaviours
    • None
    • SR4J Sprint 115, SR4J Sprint 116, SR4J Sprint 117, SR4J Sprint 118, SR4J Sprint 119, SR4J Sprint 120, SR4J Sprint 121, SR4J Sprint 123 (6.51), SR4J Sprint 124 (6.52), SR4J Sprint 125 (6.54), SR4J Sprint 126 (6.55), SR4J Sprint 127 (6.56), SR4J Sprint 128 (6.57), SR4J Sprint 129 (6.58), SR4j Sprint 140 (7.10.0), SR4j Sprint 141 (7.11.0)
    • 0.8

    Description

      Triggering Validation Error removes pre-existing Behaviour configuration in Create Issue Page for all fields(System and custom), however, this is not reproducible on create issue dialog.

      Steps to Reproduce

      1. Set a simple script in Behaviour's Initialiser such as below:
         
        def descriptionField = getFieldById('description')
        descriptionField.setRequired(true) 
        
      2. [Important] Open a Create Screen in a new tab.
      3. At first, you will see the Description is set to required.
      4. Fill in the description field
      5. Trigger a validation error by purposely not filling in the Summary and then press Create button.
      6. Once the validation error shown at the top, re-check the Description and you will find that it is no longer set as required.

      Expected Behaviour

      Behaviour still applies even after a failed validation.

      Actual Behaviour

      Once the validation error appears, Behaviour doesn't work.

      Workaround

      No workaround.

      Additional Info

      • Tested using a Script Validator as well and Behaviour doesn't work after the failed validation. So both native Jira validation and ScriptRunner validation will trigger the same problem.
      • This bug is only occur when Create Screen is open in new tab.
      • Works fine in the pop-up Create Screen.

      Attachments

        Issue Links

          Activity

            People

              dluksza Dariusz Luksza
              bkek Benz Kek
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: