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

Invalid format errors does not appear in Edit Screen when scripted fields are present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Low
    • Resolution: Done
    • None
    • 6.14.0
    • None
    • None
    • 0.7

    Description

      Summary

      If scripted fields are present, then any errors related to invalid field formats (for example, inputting text in a number field) would not show up. Rather, the screen tries to load and just doesn't show anything.

      Steps to Replicate

      1. Set up custom fields that only accept certain formats (for testing I used number field and date picker field)
      2. Include them in a ticket also contains scripted fields
      3. Try to input the invalid format into the custom fields (such as entering text into the number field)
      4. Try to update the issue

      Actual Results

      An error shows up in the browser developer tools instead.

      In this example, PICKER 1 and PICKER 2 are scripted issue picker fields

      A closer look at the error message

      If there are no scripted fields present, then the invalid format errors would appear as per usual :

      Notes

      Tested on JIRA Server 8.13.0 with Scriptrunner 6.13.0

      Attachments

        1. field1.png
          field1.png
          105 kB
        2. field2.png
          field2.png
          108 kB
        3. field3.png
          field3.png
          40 kB

        Issue Links

          Activity

            People

              jechlin Jamie Echlin
              jwai Joe Wai
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: