YouTrack Standalone 2017.3 Help

Get a State Bundle

GET /admin/customfield/stateBundle/{bundleName}

Get a bundle of states by its name.

GET /rest/admin/customfield/stateBundle/{bundleName}

Parameters:

Name

Type

Description

bundleName

string

Name of a state bundle to get.

Samples

Sample 1

Request

GET https://example.com/youtrack/rest/admin/customfield/stateBundle/States%20Bundle1 Cookie: $Version=0; JSESSIONID=1xubq236wmpbd14yd1mhq4jcrw; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 386 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <stateBundle name="States Bundle1"> <state description="descValue1" isResolved="false">Uvalue1</state> <state isResolved="false">Uvalue2</state> <state isResolved="true">Rvalue1</state> <state description="descValue2" isResolved="true">Rvalue2</state> <state description="PROFIT!!! 120" isResolved="true">new state</state> </stateBundle>

Sample 2

Request

GET https://example.com/youtrack/rest/admin/customfield/stateBundle/New%20Name%20with%20spaces Cookie: $Version=0; JSESSIONID=1xubq236wmpbd14yd1mhq4jcrw; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 452 <?xml version="1.0" encoding="UTF-8" standalone="yes"?><stateBundle name="New Name with spaces"><state description="I am a new description" isResolved="true">New State of US</state><state isResolved="false">Uvalue2</state><state isResolved="true">Rvalue1</state><state description="descValue2" isResolved="true">Rvalue2</state><state description="PROFIT!!! 120" isResolved="true">new state</state><state isResolved="true">Rvalue 4</state></stateBundle>
Last modified: 7 March 2019