Issue Activity Items
This resource lets you get the history of operations for a specific issue. It provides access to the issue activities with the possibility to filter them by various parameters.
Resource | /api/issues/{issueID}/activities |
Returned entity | ActivityItem. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
|
ActivityItem attributes
Represents a change in an issue or in its related entities. In the YouTrack UI, you see these changes in the activity stream. It shows a list of all changes related to this issue: the issue history, comments, attachments, VCS changes, work items, and so on.
Related Resources
Below you can find the list of resources that let you work with this entity.
Attributes
This table describes attributes of the ActivityItem
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 ID of the activity item. |
added | Single value or the list of values which were added to a property of the target entity. | |
author | User | The user who performed the action. |
category | ActivityCategory | The category of the activity. |
field | FilterField | The filter field. It contains the additional information about the modified property in the target entity. For example, the information about a link type, or the type of the modified custom field or bundle, and so on. |
removed | Single value or the list of values which were removed from a property of the target entity. | |
target | The entity that is the target of the performed action. | |
targetMember | String | The name of the property of the target entity, which was modified. |
timestamp | Long | The timestamp of the activity event. Stored as a unix timestamp at UTC. |
Read a List of ActivityItems
Get a list of all activities in the specific issue.
Request syntax
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of ActivityItem attributes that should be returned in the response. If no field is specified, only the |
$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. If you don't set the $top value, the server limits the maximum number of returned entries. The server returns a maximum of 42 entries for most resources that return collections. For more information, see Pagination. |
categories | String | Mandatory. Parameter filters returned activities by categories. You must specify at least one category per request. You can specify the
See this table for mapping between available categories and returned types of activity items. |
reverse | Boolean | Indicates whether the order of returning activities is from newest to oldest or the opposite. If |
start | String | The timestamp in milliseconds indicating the start of the time interval the activity timestamp belongs to. Stored as a unix timestamp at UTC. If the parameter is not set, it is considered to be 0. |
end | String | The timestamp in milliseconds indicating the end of the time interval the activity timestamp belongs to. Stored as a unix timestamp at UTC. If the parameter is not set, it is considered as |
author | String | Parameter to filter activities by the author. You can specify one of the following parameters: the database ID, login, Hub ID, or |
Sample 1
This sample retrieves issue activity items of the following categories:
For each activity item, we request the item ID, the name and login of the author, the timestamp, and the target item.
Sample request
Sample response body
Sample 2
This sample retrieves issue activity items of the following categories:
For each activity item, we request the item ID, the name and login of the author, the timestamp, and the target item. We request activity items with timestamps within the range from January 1, 2022 to January 1, 2023.