-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 7.13.0, 8.3.4, 8.5.1
-
Component/s: REST API
-
7.13
-
2
-
Severity 3 - Minor
-
0
Issue Summary
Value for a number-type custom field is saved truncated through REST API
Steps to Reproduce
This is a 2 scenarios problem, and requires clarification on which behavior is the correct one:
Scenario 1:
- Create a number type custom field.
- Add the custom field to the screens of any issue type.
- Create an issue of that issue type.
- Edit the issue and set the value to the custom number field to something with 4 or more digits after the decimal separator (like 9.987654321).
Scenario 2:
- Create a number type custom field.
- Add the custom field to the screens of any issue type.
- Create an issue of that issue type.
- Set the value of the custom number field to something with 4 or more digits after the decimal separator (like 9.987654321) using REST API (<base URL>/rest/api/2/issue/
{Issue key}
)
Actual Results
Scenario 1: the value is saved entirely in the database, with the UI only showing 3 digits after the decimal separator (rounding up the last digit):
Scenario 2: the value is saved only with 3 digits after the decimal separator, with the 3rd digit rounded up:
Expected Results
At this moment, it is unknown which of the behaviors is the intended one, requires clarification.
Workaround
Currently, there is no known workaround for this behavior. A workaround will be added here when available
- mentioned in
-
Page Loading...