Warning |
---|
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here ! |
Warning |
---|
The availability of the users personal data may be impacted by the recent changes by Atlassian in order to meet GDPR compliance. See the following for more information: |
Info |
---|
Availability
|
Syntax for the server version
userHasAccessToComment(user, comment_id)
Syntax for the cloud version
userHasAccessToComment(issue, user, comment_id)
Description
Excerpt |
---|
Verifies if a comment is visible for an user. |
Parameters for the server version
Parameter name | Type | Required | Description |
---|---|---|---|
user | String | Yes |
Username or userkey of the user. | ||
comment_id | Number | Yes |
Id of the comment. |
Note |
---|
The look-up is first made after the userkey, then after the username. |
Parameters for the cloud version
Parameter name | Type | Required | Description |
---|---|---|---|
issue | String | Yes | The issue key. |
user | String | Yes | The account id of the user. |
comment_id | Number | Yes | Id of the comment. |
Return type
boolean (true/false)
A "true" return value means that the user can see the comment.
Example (server only)
Code Block |
---|
userHasAccessToComment("admin","10000"); |
Returns: TrueReturns "true" if the user "admin" can see the comment with id "10000" , Falseand "false" if the user cannot see the comment.
Example (cloud only)
Code Block |
---|
userHasAccessToComment(key, "admin","10000"); |
Returns "true" if the user "admin" can see the comment with id "10000" from the current issue and "false" if the user cannot see the comment.
See also
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|
...