YouTrack InCloud 7.0 Help

Update a State in a Bundle

POST /admin/customfield/stateBundle/{bundleName}/{stateName}

Update state

POST /rest/admin/customfield/stateBundle/{bundleName}/{stateName}?{newName}&{isResolved}&{description}&{colorIndex}

Parameters:

Name Type Description
bundleName string Name of a bundle, in which a state should be updated.
stateName string Name of a state to update.
newName string New name for the state.
isResolved Boolean Mark the state as 'Resolved'.
description string State description.
colorIndex Integer Sequential number of a color scheme (background color/text color pair) for the state.

Sample

Request

POST http://localhost:8081/rest/admin/customfield/stateBundle/States%20Bundle1/Uvalue1?newName=New+State+of+US&isResolved=true&description=I+am+a+new+description Cookie: $Version=0; JSESSIONID=1xubq236wmpbd14yd1mhq4jcrw; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 301 Moved Permanently Content-Type: application/xml;charset=UTF-8 Location: http://unit-258.labs.intellij.net:8080/charisma/rest/admin/customfield/stateBundle/States%20Bundle1/New%20State%20of%20US Content-Length: 0 Server: Jetty(7.2.0.v20101020)
Last modified: 29 September 2016