Command Grammar
This page provides a BNF description of the YouTrack command grammar.
Grammar
<CommandList> ::= <Command> ( <Command> )*
<Command> ::= <Comment> | <Value> | <LinkCommand> | <TagCommand> | <AttributeCommand> | <MultipleCommand>
<Comment> ::= 'comment'
<LinkCommand> ::= <LinkType> <IssueId>
<TagCommand> ::= 'tag' (<TagName> | <NewTagName>) | 'untag' <TagName>
<StarCommand> ::= ( 'unstar' | 'star' ) [ <Username> ]
<AttributeCommand> ::= <Attribute> <Value>
<MultipleCommand> ::= ('add' | 'remove') (<Value> | <LinkCommand> | <MultipleAttributeCommand> )
<MultipleAttributeCommand> ::= <MultipleAttribute> <Value>
Grammar is case-insensitive.
For a complete list of command attributes, see Command Reference.
Examples
Command | Description |
---|---|
| Set the value of the State field to Fixed. |
| Add a relates to link to the issue with the ID IS-007 in the selected issue. A relates to link is also added to the issue with the ID IS-007. |
| Star the issue for the current user. |
| Add to enumeration "Affected versions" version 1.0. |
| Adds the 'Todo' tag to the selected issue. |
| Removes the 'Todo' tag from the selected issue. |
| Set the value of the State field to To be discussed. |
Last modified: 21 September 2022