Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
addJSDComment(key, currentUser(), "you can't see me", false, true); 


Note

In newer versions of Service Desk, the API responsible for the dispatchEvent attribute was deprecated, and Atlassian doesn't use this parameter in newer versions. Please don't use this property for this method.

This means you should not be using the last attribute ("true") in this example. Thus, your code should look like this:

Code Block
addJSDComment(key, currentUser(), "you can't see me", false);


Example 3

Code Block
addJSDComment(key, currentUser(), "you can't see me", false, false); 

Adds a comment on the current issue,  on behalf of the current user, viewable only by internal users. The commentAdded event will not be dispached.

Note

In newer versions of Service Desk, the API responsible for the dispatchEvent attribute was deprecated, and Atlassian doesn't use this parameter in newer versions. Please don't use this property for this method.

This means you should not be using the last attribute ("false") in this example. Thus, your code should look like this:

Code Block
addJSDComment(key, currentUser(), "you can't see me", false);



See also

Filter by label (Content by label)
showLabelsfalse
cqllabel in ("ps_routines","jsd_routine")
labelsjira_comment_routine