-
Suggestion
-
Resolution: Unresolved
-
None
-
2
-
3
-
Issue Summary
It would be great to have a custom field of "Number(read only)" similar to "Text field(read only)".
Steps to Reproduce
- Create a custom field type with "Text field(read only)" and use it in your screens.
- Enter values in numbers like (1 to 100) for this custom field in issues.
- Try to use JQL in the card layout to display all these issues to be highlighted in a specific colour if it ranges from 1 to 25(example).
- The JQL would be of below format and you will get an error stating as expected as it is a text field itself - "The operator '>' is not supported by the 'JQL(readonly)PCS-39933[Short text]' field."
"JQL(readonly)field[Short text]" > 1 AND "JQL(readonly)field[Short text]" <= 25
- If you use the number custom field then the same query will return results as expected.
Expected Results
- It would be good to have a field in read-only mode for numbers so the customer can use them to highlight these issues in their boards.
Actual Results
- As the number custom field is editable, they cannot use this field and if they try to use an alternative with a Short text type, then it gives an error as it does not support number values.
Workaround
In company-managed projects, it is possible to achieve this but there is a caveat - you must make the field editable and give it a value on the Create screen.
- Create 3 different screens, one for each operation:
- Add the custom field (of type number) to only the Create and View screens.
- Now you will be able to set the field's value on the Create screen. After the issue is created, you will be able to view the field but you will not be able to edit it.
Note if you fail to set a value for the field on the Create screen, you will not be able to see it at all in the UI subsequently due to this bug: JRACLOUD-76046 – Empty non-editable fields not appearing in Tabs