Versions Compared

Key

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

Syntax

addJSDComment(issue, comment [,isPublic])

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Posts a comment on the specified issue.

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

Parameters

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

Parameter name

Type

Required

Description

issue key

String

Yes

Key of the selected issue

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;

Return Type

Number

The returned number represents the id of the comment.

Examples

Example 1

Use the following code to add a public comment to the current issue.

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

The same can also be achieved with the following script:

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

Example 2

Use the following code to add an internal comment to the current issue.

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

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "jsd_function" and space = currentSpace ( )
labelsarray_functions