Users
You can reference a user
in the following contexts:
You can also reference a specific user login as a literal value.
User Properties
The following properties of a user account can be accessed with a workflow.
User-related Methods
The following methods are available for use with users. See also User Properties.
getVisibleName
Syntax | getVisibleName(): string |
---|---|
Description | Returns the full name of the specified user. If the full name is not set, the username is returned. |
isBanned
Syntax | isBanned(): Boolean |
---|---|
Description | Checks whether the user account is banned. |
Example | if (Assignee.isBanned()) {
Assignee = null;
} |
hasRole
Syntax | hasRole(role: string): Boolean |
---|---|
Description | Checks whether the user has the specified role in any project. |
Example | if (loggedInUser.hasRole("Developer")) {
Assignee = loggedInUser;
} |
isInGroup
createNewIssue
getIssues
watchIssue
unwatchIssue
getTag
getSharedTag
canVoteIssue
voteIssue
canUnvoteIssue
Syntax | canUnvoteIssue(issue: issue): Boolean |
---|---|
Description | Checks whether the user is able to remove their vote from the specified issue. |
unvoteIssue
Syntax | unvoteIssue(issue: issue) | |
---|---|---|
Parameters | issue | The issue from which the vote is removed. |
Description | Removes a vote on behalf of the user from the issue, if allowed |
notify
sendMail
sendJabber
Last modified: 18 April 2017