# Operations with Specific 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  |     ```GENERIC /api/issues/{issueID}/activities/{itemID} ```    |
| --- | --- |
|  Returned entity  |  [ActivityItem](api-entity-ActivityItem.html). For the description of the entity attributes, see [Supported Fields](#ActivityItem-supported-fields) section.  |
|  Supported methods  |      * `GET`: [Issue Activity Items](#get-ActivityItem-method).    |

## 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.

* [Activities](resource-api-activities.html)

* [Issue Activity Items](resource-api-issues-issueID-activities.html)

### 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. `Read-only`.  |
|  added  |   |  Single value or the list of values which were added to a property of the target entity. `Read-only`.  |
|  author  |  [User](api-entity-User.html)  |  The user who performed the action. `Read-only`.  |
|  category  |  [ActivityCategory](api-entity-ActivityCategory.html)  |  The category of the activity. `Read-only`.  |
|  field  |  [FilterField](api-entity-FilterField.html)  |  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. `Read-only`. `Can be null`.  |
|  removed  |   |  Single value or the list of values which were removed from a property of the target entity. `Read-only`.  |
|  target  |   |  The entity that is the target of the performed action. `Read-only`.  |
|  targetMember  |  String  |  The name of the property of the target entity, which was modified. `Read-only`. `Can be null`.  |
|  timestamp  |  Long  |  The timestamp of the activity event. Stored as a unix timestamp at UTC. `Read-only`.  |

## Read a Specific ActivityItem

Get information about the specific activity in the specific issue.

### Request syntax

```GENERIC
GET /api/issues/{issueID}/activities/{itemID}?{fields}
```

|  {itemID}  |  The database ID of the activity item.  |
| --- | --- |

### 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 `entityID` is returned.  |

### Sample

#### Sample request

```CURL
https://example.youtrack.cloud/api/issues/2-31/activities/0-0.9-61?fields=id,author(name,login),timestamp,target(id,$type),targetMember,targetSubMember,removed(id,name),added(id,name)
```

#### Sample response body

```JSON
{
  "targetMember": "visibility",
  "targetSubMember": "permittedGroups",
  "removed": [],
  "added": [
    {
      "name": "Sample Project Team",
      "id": "3-2",
      "$type": "UserGroup"
    }
  ],
  "author": {
    "login": "john.doe",
    "name": "John Doe",
    "$type": "User"
  },
  "timestamp": 1535649875680,
  "id": "0-0.9-61",
  "target": {
    "id": "2-31",
    "$type": "Issue"
  },
  "$type": "VisibilityGroupActivityItem"
}
```

