Issue VCS Changes
This resource lets you work with the VCS changes linked to an issue.
Resource | /api/issues/{issueID}/vcsChanges/{changeID} |
Returned entity | VcsChange. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
|
VcsChange attributes
Represents a VCS change linked to an issue.
Related Resources
Below you can find the list of resources that let you work with this entity.
Attributes
This table describes attributes of the VcsChange
entity.
To receive an attribute in the response from the server, specify it explicitly in the
fields
request parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
id | String | The database ID of the VCS change. |
date | Long | The date when the VCS change was committed to the repository. |
fetched | Long | The date when the VCS change was fetched from the repository to YouTrack. |
files | Int | The number of files included into the VCS change. Equals -1 if the number of files is unknown. |
author | User | The author of the VCS change. |
processors | Array of ChangesProcessors | The list of version control systems that contain the VCS change. |
text | String | The commit message of the VCS change. |
urls | Array of Strings | The list of links to the VCS change in the corresponding version control systems. The order is the same as in the |
version | String | The commit hash of the VCS change. |
issue | Issue | The YouTrack issue the VCS change is linked to. |
state | Byte | The code of the state of the VCS change. Here is the list of available state codes:
The list of state codes may be extended in the future API versions. |
Read a Specific VcsChange
Read a VCS change with a specific ID.
Required permissions
Requires:
Read access to the issue.
Group membership in one of the groups in the "VCS changes visibility" setting in the VCS integration settings.
Request syntax
{changeID} | The database ID of the VCS change. |
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of VcsChange attributes that should be returned in the response. If no field is specified, only the |
Sample
Sample request
Sample response body
Update a Specific VcsChange
Update an existing VCS change in the specific issue. You can only update the state of the change.
Required permissions
Requires Update Issue Private Fields permission.
Request syntax
{changeID} | The database ID of the VCS change. |
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of VcsChange attributes that should be returned in the response. If no field is specified, only the |
muteUpdateNotifications | Boolean | Set this parameter to |
Sample
Sample request
Sample request body
Sample response body
Delete a Specific VcsChange
Detach the specific VCS change from the specific issue.
Required permissions
Requires Update Issue Private Fields permission.
Request syntax
{changeID} | The database ID of the VCS change. |
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of VcsChange attributes that should be returned in the response. If no field is specified, only the |