API created internal comment is not marked as internal when not dispatching event

Thomas Heidenreich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 26, 2019

With the code

def dispatchEvent = true
def properties
= [(SD_PUBLIC_COMMENT): new JSONObject(["internal": true])] commentManager.create(issue, user, "comment text", null, null, new Date(), properties, dispatchEvent)

it is possible to create an internal comment in a service desk project that is marked with "internal" on the right side of the comment.

Setting "dispatchEvent" to false negates that and the comment is no longer marked as "internal" (the box on right side is missing) - however the comment is not showing up in the customer portal, therefore it is still internal (just the box is missing).
Has anyone else encountered this?
Or event better: does anyone have a workaround ;) 

thanks
Thomas

1 answer

0 votes
mndrvh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 17, 2020

I have the same problem. Has anyone found a solution?

Suggest an answer

Log in or Sign up to answer