YouTrack Standalone 2019.2 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. See the list of available Color Indices List.

Sample

Request

POST https://example.com/youtrack/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: https://example.com/youtrack/rest/admin/customfield/stateBundle/States%20Bundle1/New%20State%20of%20US Content-Length: 0
Last modified: 17 December 2019