Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.0.4, 7.1.4, 7.2.6
-
7
-
6
-
Severity 3 - Minor
-
1
-
Description
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
It affects built-in
"Text Field (Read Only)"
* This is the one that must be updated via code
Steps to Reproduce
- Create a new issue ticket where the field is visible
- Add a value to the field via REST API:
curl -D- -u admin:admin -X PUT --data '{"fields":{"customfield_10200":"something for something"}}' -H "Content-Type: application/json" http://localhost:8080/rest/api/2/issue/SSP-24
- in my case, the field id is 10200 and the ticket that I'm modifying is SSP-24
- Verify that the new value exists by accessing the ticket via web browser
- Now attempt to clear the field. For example these work for other text fields (single line and multi-line):
curl -D- -u admin:admin -X PUT --data '{"fields":{"customfield_10200":null}}' -H "Content-Type: application/json" http://localhost:8080/rest/api/2/issue/SSP-24 curl -D- -u admin:admin -X PUT --data '{"fields":{"customfield_10200":""}}' -H "Content-Type: application/json" http://localhost:8080/rest/api/2/issue/SSP-24
- Reload the issue ticket and the ticket still has a value in it
Workaround: updating the field to only contain a space:
curl -D- -u admin:admin -X PUT --data '{"fields":{"customfield_10200":" "}}' -H "Content-Type: application/json" http://localhost:8080/rest/api/2/issue/SSP-24
- Looks like you need to have some sort of data, so it requires that extra (space) within the " "
- The downside to this workaround is if there are JQL attempting to filter for this field as EMPTY
Attachments
Issue Links
- causes
-
JRASERVER-63316 Read-only Text Fields in the Edit Screen will be cleared when the issue is edited
- Closed
- relates to
-
JRACLOUD-62188 Read Only Text Field Cannot be Cleared
- Closed
- mentioned in
-
Page Loading...