Versions Compared

Key

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

Syntax

...

userHasAccessToComment(user, comment_id)

Description

...

Excerpt

Verifies if a comment is visible for an user.

Parameters

...

Parameter nameTypeRequiredDescription
userStringYesthe username or userkey of the user
comment_idNumberYesthe id of the comment

...

Note

The look-up is first made after the userkey, then after the username.

Return type

...

boolean (true/false)

true return value means that the user can see the comment.

Example

...

 

Code Block
userHasAccessToComment("admin","10000");

Returns: True if the user "admin" can see the comment with id "10000", False if the user cannot see the comment.

See

Also:

also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "jira_security_routine"
labelsjira_security_routine