-
Bug
-
Resolution: Timed out
-
Medium
-
None
-
3.13.2, 3.13.3
-
3.13
-
Severity 2 - Major
-
-
1. Create a custom field named "Example Readonly" of type "Readonly Text (<255)"
2. Add it to the Default and Resolve screens on a new tab.
3. Put some text value in the field, for example by using the SOAP updateIssue() method
4. Create and install a listener that receives the ResolvedIssue event
5. In the method that processes the event, try to get the value of the custom field.
Issue issue = event.getIssue(); CustomFieldManager cfm = ComponentManager.getInstance().getCustomFieldManager(); String fieldname = "Example Readonly"; CustomField myCustomField = cfm.getCustomFieldObjectByName(fieldname); Object broken = issue.getCustomFieldValue(myCustomField); Object working = myCustomField.getValue(issue);
The bug is that the variable broken is always null, whereas the variable working can be cast to a String and is the correct value.
- is related to
-
JRASERVER-7151 Not possible to set default value for Read Only Custom Field through UI
-
- Gathering Impact
-