-
Bug
-
Resolution: Timed out
-
Low
-
5
-
Severity 3 - Minor
-
Summary
After editing "sd.public.comment" comment property using REST API is not reflecting. The intention is to change comment from "Public" to "Internal" comment or the other way round.
Steps to Reproduce
- Retrieve the comment property using {{GET /rest/api/2/comment/
{commentId}
/properties}}
- Then, get the comment property value GET /rest/api/2/comment/28707/properties/sd.public.comment
{ "key": "sd.public.comment", "value": { "value": { "internal": true } } }
This means the comment is "Internal".
- Then, update the comment property to set the comment to Public PUT /rest/api/2/comment/28707/properties/sd.public.comment . The data :-
{"internal": false}
- Retrieve from database
SELECT * FROM entity_property WHERE ENTITY_ID =28707;
id entity_name entity_id property_key created updated json_value 30207 CommentProperty 28707 sd.public.comment 2018-03-26T13:10:49.087Z 2018-03-26T13:12:07.022Z " {""internal"": false} "
27408 fusion.caches.issue 28707 github 2017-07-07T08:00:55.153Z 2017-08-10T06:59:00.812Z "{""value"":{""targets"": Unknown macro: {""BHFWEB-261""}}
""expiry"":1502378940784}" 30208 sd.comment.property 28707 sd.public.comment 2018-03-26T13:10:49.219Z 2018-03-26T13:10:49.219Z " {""internal"":true} "
Expected Results
When get back the comment property value , it set correctly. In JIRA the comment is set to Public
Actual Results
When get back the comment property value , it set correctly. But, in JIRA the comment is still set in Internal.
Workaround
No workaround