An issue has a number of specific default attributes, like issue reporter, or issue links, which in workflow are treated as fields. Some of them, like reporter, for example, are fields with read-only access, i.e. you can only get this field's value, not update it.
Read-only access. Allows to get issue reporter. E.g.
will set issue reporter as assignee for the current issue.
Allows to get a project to which issue belongs.
Read-only access. Signifies 'created' date for an issue.
Read-only access. Signifies 'updated' date for an issue.
read-only access. Signifies 'resolved' date for an issue, a date when issue's state is set to a value, which is considered as 'resolved' state (e.g. Fixed, Duplicate, Obsolete, etc.)
Signifies issue's summary text.
Signifies issue's description text.
A list of links of specified name for an issue.
List of comments for an issue.
Number of votes for an issue.
Methods Applicable to an Issue
In general case you should use issue.<method> construction. However, workflow language supports 'short' presentation, i.e. instead of issue.isReported you can use just isReported.
Allows to get issueId.
Get issue's URL.
Unlike the getId() method, this one will result in showing an URL to the issue, not just issueID.
Create new comment for the current issue.
Boolean. Allows to check if issue is reported. Applied to both just reported (the current update operation is submitting issue) and reported issues. To address an issue draft (not yet submitted issue), use the !isReported construction.
Boolean. Allows to check if issue is resolved (has a State value, which considered as Resolved: e.g. Fixed, Obsolete, Duplicate, etc.)
Methods Applicable to Issue Fields
General syntax for these methods is <field_name>.<method>.
Assert that a value for the field is set.
Applicable to collections of values (enumeration bundles, builds, subsystems, links, etc.). Checks whether an list of values is empty.
Applicable to collections of values (enumeration bundles, builds, subsystems, links, etc.). Checks whether an list of values is not empty.
Checks that the field is changed during the update.
Checks that a field is set to a particular value during the current issue change.
Checks permissions to view the specified field.
Checks permissions to update the specified field.
Allows to get an old value of the specified field, a value before the change.
Get presentation of the field's value.
Tag Related Methods
Please note that these methods also relate to set a user as watcher for an issue, because adding a watcher to an issue is per se adding the specific Star tag to the issue on behalf of this user.
Add currently logged-in user as watcher for an issue (add 'Star' tag).
Remove user from watchers list of the issue (remove 'Star' tag).
Find tag visible to the user. If createIfNotExists parameter is true and no tag with the given name is visible to the user and user has sufficient permissions to create tags, then new tag with the given name will be created.
Votes Related Methods
The following methods are available since YouTrack 4.0.2:
Adds a vote of the user to the issue, if it is allowed.
Removes a vote of the user from the issue, if it is allowed
Returns boolean denoting whether the user can vote for the issue
Returns boolean denoting whether the user can unvote the issue
Signifies a currently logged in user, who is updating an issue.
Method allows to create a new issue in a project with specified projectId. Must be used on behalf of loggedInUser:
The example above means that the current user create new issue in project with 'TST' projectId.