Syntax:
userHasAccessToComment(user, comment_id)
Description:
Verifies if a comment is visible for an user.Parameters:
Parameter name | Type | Required | Description |
---|---|---|---|
user | String | Yes | the username or userkey of the user |
comment_id | Number | Yes | the id of the comment |
The look-up is first made after the userkey, then after the username.
Return type:
boolean (true/false)
A true return value means that the user can see the comment.
Example:
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:
-
userHasAccessToComment (Power Scripts for Jira Cloud)
-
admGetProjectPermissionScheme (Simple Issue Language™)
-
-
-
admGetProjectIssueSecurityScheme (Simple Issue Language™)
-
admSetProjectPermissionScheme (Simple Issue Language™)
-
admGetProjectIssueSecurityLevels (Simple Issue Language™)
-
admSetProjectIssueSecurityScheme (Simple Issue Language™)
-
userInGroup (Simple Issue Language™)
-
projectsWithPermissionForUser (Simple Issue Language™)
-
isUserInRole (Simple Issue Language™)
-
isAnyUserAuthenticated (Simple Issue Language™)
-
-
userHasAccessToComment (Simple Issue Language™)
-
userHasSoftwareAccess (Simple Issue Language™)