-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.1.8
-
7.01
-
4
-
Severity 3 - Minor
-
1
-
Summary
Custom field in JIRA 7 is not rendering HTML content instead it's showing the content of the HTML as plain text.
Steps to Reproduce
- Set up JIRA 6.4.12.
- Create a new project.
- Add a custom field with type Text Field (read only) and associate the custom field to the new project.
- Create a new issue at the new project - let's say issue ID is MOGA -1
- Insert the custom field value via REST API because this custom field type is read-only. The value needs to be in HTML format, for example:
<a href=%22http://localhost:8081/browse/MOGA-1%22>MOGA-1</a>
Example REST API is:
PUT http://localhost:8080/rest/api/2/issue/MOGA-1
with body:
{ "update" : { "customfield_10000" : [{"set" : "<a href=%22http://localhost:8081/browse/MOGA-1%22>MOGA-1</a>"}] } }
- Notice that the value for the custom field on issue MOGA-1 - properly rendered HTML content. Refer to the Expected Result.
- Repeat the same steps on JIRA 7.1.8.
- Notice that the content of the custom field shows as plain text. Refer to the Actual Result.
Expected Results
Actual Results
- relates to
-
JRASERVER-38866 Disallow HTML markup for select list custom field option values
- Closed