YouTrack Standalone 7.0 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 http://localhost:8081/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 Server: Jetty(7.2.0.v20101020) <?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 http://localhost:8081/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 Server: Jetty(7.2.0.v20101020) <?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: 29 September 2016