YouTrack Standalone 7.0 Help

Get Owned Field

GET /admin/customfield/ownedFieldBundle/{bundleName}/{fieldName}

Get owned field

GET /rest/admin/customfield/ownedFieldBundle/{bundleName}/{fieldName}

Parameters:

Name Type Description
bundleName string Name of a bundle to get an owned field from.
fieldName string Name of an owned field to get.

Sample

Request

GET http://localhost:8081/rest/admin/customfield/ownedFieldBundle/New%20bundle%20name/Element%20name Cookie: $Version=0; JSESSIONID=8dmapdeyqjdkeab2l6yhf4cu; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 404 Not Found Content-Type: application/xml;charset=UTF-8 Content-Length: 109 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>Owned field [ Element name ] not found.</error>

Sample 2

Request

GET http://localhost:8081/rest/admin/customfield/ownedFieldBundle/New%20bundle%20name/New%20element%20name Cookie: $Version=0; JSESSIONID=8dmapdeyqjdkeab2l6yhf4cu; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 147 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ownedField description="new element description" owner="beto">New element name</ownedField>
Last modified: 29 September 2016