Developer Portal for YouTrack and Hub 2021.3 Help

Values in the Build Bundle

This resource lets you work with the values in a specific set of builds (build bundle).

Resource

/api/admin/customFieldSettings/bundles/build/{bundleID}/values

Returned entity

BuildBundleElement. For the description of the entity attributes, see Supported Fields section.

Supported methods

BuildBundleElement attributes

Represents a build - a single element of a builds bundle.

Extends BundleElement

This table describes attributes of the BuildBundleElement entity.

  • To receive an attribute in the response from server, specify it explicitly in the request parameter fields.

  • To update an attribute, provide it in the body of a POST request.

Field

Type

Description

assembleDate

Long

The date and time when the build was assembled as the timestamp. Can be null.

name

String

The name of the value.

bundle

Bundle

The reference to the bundle that contains this value. Read-only. Can be null.

description

String

The description of the value. Can be null.

ordinal

Int

The position of the value in the set of values for the custom field.

color

FieldStyle

The color that is assigned to the value in the custom field.

hasRunningJob

Boolean

If true, there are some jobs running in the background for this bundle element. Otherwise, false. Read-only.

Read a List of BuildBundleElements

Get the list of all build values in the specific build bundle.

Request syntax

GET /api/admin/customFieldSettings/bundles/build/{bundleID}/values?{fields}&{$top}&{$skip}

Request parameters

Parameter

Type

Description

fields

String

A list of BuildBundleElement attributes that should be returned in the response. If no field is specified,only the entityID is returned

$skip

Int

Optional. Lets you set a number of returned entities to skip before returning the first one.

$top

Int

Optional. Lets you specify the maximum number of entries that are returned in the response.

Sample

Sample request

https://example.myjetbrains.com/youtrack/api/admin/customFieldSettings/bundles/build/86-3/values?fields=id,name,assembleDate,description

Sample response body

[ { "assembleDate": 1627300800000, "description": null, "name": "135", "id": "150-5", "$type": "BuildBundleElement" }, { "assembleDate": 1627387200000, "description": null, "name": "136", "id": "150-6", "$type": "BuildBundleElement" }, { "assembleDate": 1627473600000, "description": null, "name": "137", "id": "150-7", "$type": "BuildBundleElement" }, { "assembleDate": 1627560000000, "description": null, "name": "138", "id": "150-8", "$type": "BuildBundleElement" } ]

Add a New BuildBundleElement

Add a new build to the bundle.

Required permissions

Requires Project Update permission in all projects where the bundle is used. If the bundle is not used in any field, Update Project permission is required in at least one project.

Request syntax

POST /api/admin/customFieldSettings/bundles/build/{bundleID}/values?{fields}

Request parameters

Parameter

Type

Description

fields

String

A list of BuildBundleElement attributes that should be returned in the response. If no field is specified,only the entityID is returned

Sample

Sample request

https://example.myjetbrains.com/youtrack/api/admin/customFieldSettings/bundles/build/86-1/values?fields=id,name,assembleDate,description

Sample request body

{ "assembleDate": 1627636495000, "name": "139", "$type": "BuildBundleElement" }

Sample response body

{ "assembleDate": 1627636495000, "description": null, "name": "139", "id": "150-10", "$type": "BuildBundleElement" }
Last modified: 14 September 2021