# Webhook response sending wrong info while adding internal/public comment - jsdPublic

**URL:** <https://community.developer.atlassian.com/t/webhook-response-sending-wrong-info-while-adding-internal-public-comment-jsdpublic/35983>\
**Category:** JSM Cloud\
**Tags:** comment, webhook, jira-service-management, rest-api\
**Created:** [February 24, 2020, 7:12am UTC](https://community.developer.atlassian.com/t/webhook-response-sending-wrong-info-while-adding-internal-public-comment-jsdpublic/35983 "2020-02-24T07:12:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamuraiKrish](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@SamuraiKrish](https://community.developer.atlassian.com/u/SamuraiKrish)\
**Post date:** [February 24, 2020, 7:12am UTC](https://community.developer.atlassian.com/t/webhook-response-sending-wrong-info-while-adding-internal-public-comment-jsdpublic/35983/1 "2020-02-24T07:12:05Z")

</div>

Hi,

We are pushing all the comments to our product when a user adds a comment in Jira. We differentiate internal and public comments.

We look for “jsdPublic” attribute to find if the comment is internal or public comment.

Here jsdPublic values are, “True” if it is public comment, “false” if it is an internal comment.

But when we add an internal comment, we received “jsdPublic” as true in the webhook response and it is happening most of the times.

**Sample webhook response**

Use the timestamp and account id to check logs on your end.

```auto
{
    "timestamp": 1582528087546,
    "webhookEvent": "comment_created",
    "comment": {
        "self": "https://domain.atlassian.net/rest/api/2/issue/10037/comment/10321",
        "id": "10321",
        "author": {
            "self": "https://domain.atlassian.net/rest/api/2/user?accountId=5d566740400d9d0d9f53ef9b",
            "accountId": "5d566740400d9d0d9f53ef9b",
            "emailAddress": "xxxxx@gmail.com",
            "avatarUrls": {
             
            },
            "displayName": "Samurai Krish",
            "active": true,
            "timeZone": "Asia/Kolkata",
            "accountType": "atlassian"
        },
        "body": "This is internal comment",
        "updateAuthor": {
            "self": "https://domain.atlassian.net/rest/api/2/user?accountId=5d566740400d9d0d9f53ef9b",
            "accountId": "5d566740400d9d0d9f53ef9b",
            "emailAddress": "Xxxxxxxx@gmail.com",
            "avatarUrls": {
           
            },
            "displayName": "Samurai Krish",
            "active": true,
            "timeZone": "Asia/Kolkata",
            "accountType": "atlassian"
        },
        "created": "2020-02-24T12:38:07.546+0530",
        "updated": "2020-02-24T12:38:07.546+0530",
        **"jsdPublic": true**
    },
    "issue": {
        "id": "10037",
        "self": "https://domain.atlassian.net/rest/api/2/10037",
        "key": "ITSM-2",
        "fields": {
            "summary": "Child ticket Jira Test Ticket",
            "issuetype": {
                "self": "https://domain.atlassian.net/rest/api/2/issuetype/10109",
                "id": "10109",
                "description": "For system outages or incidents. Created by Jira Service Desk.",
                "iconUrl": "https://domain.atlassian.net/secure/viewavatar?size=medium&avatarId=10603&avatarType=issuetype",
                "name": "Incident",
                "subtask": false,
                "avatarId": 10603
            },
            "project": {
                "self": "https://domain.atlassian.net/rest/api/2/project/10005",
                "id": "10005",
                "key": "ITSM",
                "name": "ITSM",
                "projectTypeKey": "service_desk",
                "simplified": false,
                "avatarUrls": {
                
                },
                "projectCategory": {
                    "self": "https://domain.atlassian.net/rest/api/2/projectCategory/10000",
                    "id": "10000",
                    "description": "Testing",
                    "name": "Service Desk"
                }
            },
            "assignee": null,
            "priority": {
                "self": "https://domain.atlassian.net/rest/api/2/priority/3",
                "iconUrl": "https://domain.atlassian.net/images/icons/priorities/medium.svg",
                "name": "Medium",
                "id": "3"
            },
            "status": {
                "self": "https://domain.atlassian.net/rest/api/2/status/1",
                "description": "The issue is open and ready for the assignee to start work on it.",
                "iconUrl": "https://domain.atlassian.net/images/icons/statuses/open.png",
                "name": "Open",
                "id": "1",
                "statusCategory": {
                    "self": "https://domain.atlassian.net/rest/api/2/statuscategory/2",
                    "id": 2,
                    "key": "new",
                    "colorName": "blue-gray",
                    "name": "To Do"
                }
            }
        }
    }
}

```

Thanks,  
Kannan

---

<div class="post-metadata">

**Author:** ![SamuraiKrish](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@SamuraiKrish](https://community.developer.atlassian.com/u/SamuraiKrish)\
**Post date:** [March 11, 2020, 10:53am UTC](https://community.developer.atlassian.com/t/webhook-response-sending-wrong-info-while-adding-internal-public-comment-jsdpublic/35983/2 "2020-03-11T10:53:35Z")

</div>

Can someone from Jira team look into this? The webhook response still sending wrong info.

Thanks,  
Kannan

---

<div class="post-metadata">

**Author:** ![AnupKattel](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@AnupKattel](https://community.developer.atlassian.com/u/AnupKattel)\
**Post date:** [June 15, 2020, 6:56am UTC](https://community.developer.atlassian.com/t/webhook-response-sending-wrong-info-while-adding-internal-public-comment-jsdpublic/35983/3 "2020-06-15T06:56:53Z")

</div>

We are having the same issue. It is intermittent. Almost looks like flag is cached.

---

<div class="post-metadata">

**Author:** ![DanielKuhlmann](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@DanielKuhlmann](https://community.developer.atlassian.com/u/DanielKuhlmann)\
**Post date:** [July 1, 2020, 10:39am UTC](https://community.developer.atlassian.com/t/webhook-response-sending-wrong-info-while-adding-internal-public-comment-jsdpublic/35983/4 "2020-07-01T10:39:42Z")

</div>

How can we see Atlassian is planning to fix this issue?  
We have the same problem.

---

<div class="post-metadata">

**Author:** ![NishantParaskar2](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@NishantParaskar2](https://community.developer.atlassian.com/u/NishantParaskar2)\
**Post date:** [September 27, 2025, 3:15pm UTC](https://community.developer.atlassian.com/t/webhook-response-sending-wrong-info-while-adding-internal-public-comment-jsdpublic/35983/5 "2025-09-27T15:15:34Z")

</div>

Hi @**[SamuraiKrish](https://community.developer.atlassian.com/u/samuraikrish)**

Its possible to add the Internal comment . But parameter you are using in not correct. Look at the payload and try it  
1)For internal Comment use “internal”: true  
2)For External Comment use “internal”: false

**API :**  
**Post :**  **{BaseURL}** /rest/api/3/issue/ **{workItemID}** /comment

**Body :**

> {
> 
> “body”: {
> 
> ```auto
> "version": 1,
> 
> "type": "doc",
> 
> "content": \[
> 
> {
> 
> "type": "paragraph",
> 
> "content": \[
> 
> {
> 
> "type": "text",
> 
> "text": "TEST : internal Comment Problem Solved"
> 
> }
> 
> \]
> 
> }
> 
> \]
> 
> ```
> 
> },
> 
> “properties”: [
> 
> ```auto
> {
> 
> "key": "sd.public.comment",
> 
> "value": {
> 
> "internal": true
> 
> }
> 
> }
> 
> ```
> 
> ]
> 
> }

I hope its works . Thanks me later!!!
