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

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.

{
    "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

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

Thanks,
Kannan

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

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