YouTrack Standalone 7.0 Help

Get All State Bundles

GET /admin/customfield/stateBundle

Get all available bundles of states.

GET /rest/admin/customfield/stateBundle

Samples

Sample 1

Request

GET http://localhost:8081/rest/admin/customfield/stateBundle 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: 372 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <stateBundleRefs> <stateBundle name="States" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/customfield/stateBundle/States"/> <stateBundle name="New Name with spaces" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/customfield/stateBundle/New%20Name%20with%20spaces"/> </stateBundleRefs>

Sample 2

Request

GET http://localhost:8081/rest/admin/customfield/stateBundle 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: 514 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <stateBundleRefs> <stateBundle name="States" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/customfield/stateBundle/States"/> <stateBundle name="New Name with spaces" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/customfield/stateBundle/New%20Name%20with%20spaces"/> <stateBundle name="States Bundle1" url="http://unit-258.labs.intellij.net:8080/charisma/rest/admin/customfield/stateBundle/States%20Bundle1"/> </stateBundleRefs>
Last modified: 29 September 2016