YouTrack Standalone 7.0 Help

Intellisense for commands

GET /issue/{issue}/execute/intellisense

Get highlight and suggestions for command

GET /rest/issue/{issue}/execute/intellisense?{command}&{runAs}&{caret}&{optionsLimit}

Parameters:

Name Type Description
issue issueById A command will be applied to an issue with this issueID.
command string Current command.
runAs string (optional) Suggest for the given user. Low-level admin permissions are required.
caret Integer (optional) Current caret position. End of current command by default.
optionsLimit Integer (optional) Maximum amount of suggested options

Sample

Request

GET http://localhost:8081/rest/issue/TST-2/execute/intellisense?command=Subsystem+Backend+State+Ope&optionsLimit=5 Cookie: $Version=0; JSESSIONID=1a62diy56jbak1731yheey3pv9; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 669 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <IntelliSense> <highlight> <range> <end>9</end> <start>0</start> <styleClass>field</styleClass> </range> <range> <end>17</end> <start>10</start> <styleClass>field</styleClass> </range> <range> <end>18</end> <start>17</start> </range> <range> <end>23</end> <start>18</start> <styleClass>field</styleClass> </range> <range> <end>27</end> <start>24</start> <styleClass>error</styleClass> </range> </highlight> <recent/> <suggest> <item> <match start="0" end="3"/> <completion start="24" end="27"/> <caret>29</caret> <description>States</description> <suffix></suffix> <option>Open</option> <styleClass>field</styleClass> </item> </suggest> </IntelliSense>
Last modified: 29 September 2016