Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

addJSDComment(issue, username, comment,isPublic,

dispachEvent

dispatchEvent)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue

Posts a comment on the specified issue on behalf of the specified user.

Posts a comment on the specified issue on behalf of the specified user. Returns a number representing the id of the comment.

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

issue key

String

Yes

Key of the selected issue

user name

String

Yes

User name of the selected user

comment

String

Yes

Comment that will be posted on the selected issue

isPublic

Boolean

No

“true” for public comment or “false” for internal comment, the default is "true"

dispachEvent

dispatchEvent (deprecated)

Boolean

No

“true” if you want to

dispach

dispatch the commentAdded event and “false” if not, the default is "true". In newer versions of Service Desk, the API responsible for this feature was deprecated, and Atlassian doesn't use this parameter in newer versions. Please don't use this property for this method.

Return Type

Number

The returned number represents the id of the comment.

...

Use the following code to add a public comment to the current issueon issue on behalf of the current user. The commentAdded event will be dispacheddispatched.

Code Block
addJSDComment(key, currentUser(), "I have executed a transition.");

...

Use the following code to add an internal comment to the current issueon issue on behalf of the current user. The commentAdded event will be dispacheddispatched.

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

...

Use the following code to add an internal comment to the current issue on behalf of the current user. The commentAdded event will not be dispacheddispatched.

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

...

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

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "jsd_routine" and space = currentSpace ( )
labelsarray_routines