Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-44457

Unable to set "-1" string value in text field custom field

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 3.13.5, 6.1.7, 6.3.13, 6.4.7, 7.13.5, 8.4.1
    • Issue - Fields

    Description

      Summary

      • Custom Field Text Field (single line) and Custom Field Text Field (multi-line) are unable to handle the value "-1"
      • Only when keying "-1 ", other negative number and 0 is not affected

      Steps to Reproduce

      1. Create a new custom field Custom Field Text Field (single line) and Custom Field Text Field (multi-line)
      2. Go to create issue
      3. Enter value "-1" for both fields
      4. Value will not be able to shown and when using "Where's my field", its stated that the field is having null value

      Expected Results

      • To be able to shown the value "-1"

        Actual Results

      • "-1" is treated as null value

      Workaround

      • To have space before -1 "<space>-1", eg: " -1"

      Attachments

        1. -1 string value.png
          -1 string value.png
          13 kB
        2. -1 string value 1.png
          -1 string value 1.png
          20 kB
        3. missing -1 .png
          missing -1 .png
          16 kB
        4. permission helper.png
          permission helper.png
          58 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              f8cdc8de88b1 Jérémie Martinez
              Votes:
              12 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated: