Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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

  • This routine is available starting with katl-commons 1.0.
  • This routine is available for Jira server and cloud deployment options.

...

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

userHasAccessToComment(user, comment_id)

...

Syntax for the cloud version

...

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Verifies if a comment is visible for an user.

Parameters for the server version

...

Note

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

...

Verifies if a comment is visible for an user.

Parameters

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

Parameter name

Type

Required

Description

...

...

user

String

Yes

...

Username or userkey of the user.

comment_id

Number

Yes

Id of the comment.

Return

...

boolean (true/false)

...

Type

Boolean

A "true"  return 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"

...

and "

...

false" if the user cannot see the comment.

Example (cloud only)

 

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

...

Note

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

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "

...

user_routine" and space = currentSpace ( )
labels

...

array_

...

routines