Availability
This routine is available since katl-commons 2.0.5 (for JIRA 5.x) or katl-commons 1.1.12 (for JIRA 4.3.x and 4.4.x)
Syntax:
isAnyUserAuthenticated()
Description:
Verifies if there is a logged in user.Parameters:
None
Return type:
boolean (true/false)
A true return value means that there is a logged in user.
Example:
Example 1:
if (isAnyUserAuthenticated()) { print(currentDate()); }
Result: It will print the current date. If there is nobody logged in, the current date will not be printed.
2012-06-20 13:39:31,629 pool-5-thread-2 INFO admin 819x261x1 1k7wpbj 127.0.0.1 /rest/keplerrominfo/jjupin/latest/rungadget/run [commons.sil.routines.StringPrintRoutine] 2012-06-20 13:39:31
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™)