Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-6050

Editing "sd.public.comment" comment property using REST API is not reflected in JIRA

XMLWordPrintable

      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

      1. Retrieve the comment property using {{GET /rest/api/2/comment/ {commentId}

        /properties}}

      2. 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".

      3. 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}
        
      4. 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

              Unassigned Unassigned
              nroslan Atiqah Roslan
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: