---
schema: rendered-html/v1
title: "Issue Work Items | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/resource-api-issues-issueID-timeTracking-workItems.html
generated_at: 2026-06-11T15:13:21.987748+00:00
---

Feedback

Thanks for your feedback!

Was this page helpful?

YesNo

Developer Portal for YouTrack and Hub

- Developer Portal
- Apps
- MCP Tools
- YouTrack Workflows
- YouTrack Import Scripts
- YouTrack Form API
- YouTrack REST API
- Get Started with REST API
- REST API Reference
- Entities
- Resources
- Activity Items
- Issue Activities Page
- Build Bundles
- Enum Bundles
- Owned Bundles
- State Bundles
- User Bundles
- Version Bundles
- Custom Fields
- Field Types
- Backup Files
- Database Backup Settings
- Global Settings
- Organizations
- Projects
- Telemetry data
- Global Time Tracking Settings
- Agiles
- Articles
- Assigned Roles
- Commands
- Command Suggestions
- User Groups
- Issue Link Types
- Issue Tag
- [Issues](jetbrains__com__help__youtrack__devportal__resource-api-issues.md)
- Operations with Specific Issue
- Sub-resources
- Issue Activity Items
- Activity Cursor Page
- Issue Attachments
- Issue Comments
- Issue Custom Fields
- Issue Links
- Issue Project
- Issue Sprints
- Tags
- [Issue Time Tracking](jetbrains__com__help__youtrack__devportal__resource-api-issues-issueid-timetracking.md)
- Operations with Specific IssueTimeTracking
- Sub-resources
- [Issue Work Items](resource-api-issues-issueID-timeTracking-workItems.html)
- Operations with Specific IssueWorkItem
- [Issue VCS Changes and Pull Requests](jetbrains__com__help__youtrack__devportal__resource-api-issues-issueid-vcschanges.md)
- [Issue Count](jetbrains__com__help__youtrack__devportal__resource-api-issuesgetter-count.md)
- [Permissions](jetbrains__com__help__youtrack__devportal__resource-api-permissions.md)
- [Roles](jetbrains__com__help__youtrack__devportal__resource-api-roles.md)
- [Saved Queries](jetbrains__com__help__youtrack__devportal__resource-api-savedqueries.md)
- [Search Suggestions](jetbrains__com__help__youtrack__devportal__resource-api-search-assist.md)
- [Tags](jetbrains__com__help__youtrack__devportal__resource-api-tags.md)
- Users
- [My User Profile](jetbrains__com__help__youtrack__devportal__resource-api-users-me.md)
- Issue Work Items
- REST API Use Cases
- REST API Troubleshooting
- Color Indices List
- Hub REST API

1. YouTrack REST API
2. REST API Reference
3. Resources
4. [Issues](jetbrains__com__help__youtrack__devportal__resource-api-issues.md)
5. [Sub-resources](#0)
6. [Issue Time Tracking](jetbrains__com__help__youtrack__devportal__resource-api-issues-issueid-timetracking.md)
7. [Sub-resources](#0)
8. [Issue Work Items](#0)

# Issue Work Items﻿

Last modified: 24 March 2026

This resource lets you work with work items in the specific issue.

| Resource | ``` /api/issues/{issueID}/timeTracking/workItems ``` |
| --- | --- |
| Returned entity | IssueWorkItem. For the description of the entity attributes, see [Supported Fields](/help/youtrack/devportal/resource-api-issues-issueID-timeTracking-workItems.html#IssueWorkItem-supported-fields) section. |
| Supported methods | - `GET`: [Read a List of IssueWorkItems](/help/youtrack/devportal/resource-api-issues-issueID-timeTracking-workItems.html#get_all-IssueWorkItem-method). - `POST`: [Add a New IssueWorkItem](/help/youtrack/devportal/resource-api-issues-issueID-timeTracking-workItems.html#create-IssueWorkItem-method). |

## IssueWorkItem attributes﻿

Represents a work item in an issue.

### Related Resources﻿

Below you can find the list of resources that let you work with this entity.

- Work Items
- Work Items in an Issue

Extends BaseWorkItem

### Attributes﻿

This table describes attributes of the `IssueWorkItem` 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 issue work item. `Read-only`. |
| author | User | The user to whom the work is attributed in the work item. `Can be null`. |
| creator | User | The user who added the work item to the issue. `Read-only`. `Can be null`. |
| text | String | The work item description. `Can be null`. |
| textPreview | String | Parsed preview of the description. `Read-only`. |
| type | WorkItemType | The work item type. `Can be null`. |
| created | Long | The timestamp in milliseconds indicating the moment when the work item was created. Stored as a unix timestamp at UTC. |
| updated | Long | The timestamp in milliseconds indicating the last update of the work item. Stored as a unix timestamp at UTC. `Can be null`. |
| duration | DurationValue | The duration of the work item. |
| date | Long | The timestamp in milliseconds indicating the date and time of the work item. Stored as a Unix timestamp in UTC. The time part is set to midnight for the current date. |
| issue | Issue | Stores attributes of the issue to which the work item is attached. `Read-only`. |
| attributes | Array of WorkItemAttributes | The list of attributes of the work item. `Read-only`. |

## Read a List of IssueWorkItems﻿

Get the list of all work items of the specific issue.

### Request syntax﻿

```
GET /api/issues/{issueID}/timeTracking/workItems?{fields}&{$top}&{$skip}
```

| null | The database ID of IssueWorkItem |
| --- | --- |

### Request parameters﻿

| Parameter | Type | Description |
| --- | --- | --- |
| fields | String | A list of IssueWorkItem 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. 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. |

### Sample﻿

#### Sample request﻿

```
https://example.youtrack.cloud/api/issues/2-35/timeTracking/workItems?fields=author(id,name),creator(id,name),date,duration(id,minutes,presentation),id,name,text,type(id,name)
```

#### Sample response body﻿

```
[
  {
    "date": 1536278400000,
    "duration": {
      "id": "300",
      "minutes": 300,
      "presentation": "5h",
      "$type": "DurationValue"
    "type": {
      "name": "Testing",
      "id": "65-1",
      "$type": "WorkItemType"
    "text": "almost there",
    "creator": {
      "name": "John Smith",
      "id": "1-1",
      "$type": "User"
    "author": {
      "name": "John Smith",
      "id": "1-1",
      "$type": "User"
    "id": "115-0",
    "$type": "IssueWorkItem"
  {
    "date": 1538956800000,
    "duration": {
      "id": "60",
      "minutes": 60,
      "presentation": "1h",
      "$type": "DurationValue"
    "type": {
      "name": "Documentation",
      "id": "65-2",
      "$type": "WorkItemType"
    "text": "added a document for internal parameters. check wiki for details",
    "creator": {
      "name": "John Doe",
      "id": "1-2",
      "$type": "User"
    "author": {
      "name": "Jane Doe",
      "id": "1-3",
      "$type": "User"
    "id": "115-2",
    "$type": "IssueWorkItem"
  {
    "date": 1538956800000,
    "duration": {
      "id": "120",
      "minutes": 120,
      "presentation": "2h",
      "$type": "DurationValue"
    "type": {
      "name": "Testing",
      "id": "65-1",
      "$type": "WorkItemType"
    "text": null,
    "creator": {
      "name": "John Doe",
      "id": "1-2",
      "$type": "User"
    "author": {
      "name": "John Doe",
      "id": "1-2",
      "$type": "User"
    "id": "115-5",
    "$type": "IssueWorkItem"
  {
    "date": 1538956800000,
    "duration": {
      "id": "120",
      "minutes": 120,
      "presentation": "2h",
      "$type": "DurationValue"
    "type": {
      "name": "Testing",
      "id": "65-1",
      "$type": "WorkItemType"
    "text": null,
    "creator": {
      "name": "John Doe",
      "id": "1-2",
      "$type": "User"
    "author": {
      "name": "Jane Doe",
      "id": "1-3",
      "$type": "User"
    "id": "115-6",
    "$type": "IssueWorkItem"
  {
    "date": 1538956800000,
    "duration": {
      "id": "120",
      "minutes": 120,
      "presentation": "2h",
      "$type": "DurationValue"
    "type": {
      "name": "Testing",
      "id": "65-1",
      "$type": "WorkItemType"
    "text": null,
    "creator": {
      "name": "John Doe",
      "id": "1-2",
      "$type": "User"
    "author": {
      "name": "Jane Doe",
      "id": "1-3",
      "$type": "User"
    "id": "115-7",
    "$type": "IssueWorkItem"
  }
]
```

## Add a New IssueWorkItem﻿

Add a new work item to the issue.

Required fields: `duration` (`minutes` or `presentation`).

### Request syntax﻿

```
POST /api/issues/{issueID}/timeTracking/workItems?{fields}&{muteUpdateNotifications}
```

| null | The database ID of IssueWorkItem |
| --- | --- |

### Request parameters﻿

| Parameter | Type | Description |
| --- | --- | --- |
| fields | String | A list of IssueWorkItem attributes that should be returned in the response. If no field is specified, only the `entityID` is returned. |
| muteUpdateNotifications | Boolean | Set this parameter to `true` if no notifications should be sent on changes made by this request. This doesn't mute notifications sent by any workflow rules. Using this parameter requires Apply Commands Silently permission in all projects affected by the request. Available since 2021.3. |

### Sample﻿

#### Sample request﻿

```
https://example.youtrack.cloud/api/issues/2-35/timeTracking/workItems?fields=author(id,name),creator(id,name),date,duration(id,minutes,presentation),id,name,text,type(id,name)
```

#### Sample request body﻿

```
{
  "text": "I keep on testing *samples*.",
  "date": 1539000000000,
  "author": {
    "id": "24-0"
  "duration": {
    "minutes": 120
  "type": {
    "id": "49-0"
  }
}
```

#### Sample response body﻿

```
{
  "duration": {
    "presentation": "2h",
    "minutes": 120,
    "id": "120",
    "$type": "DurationValue"
  "date": 1538956800000,
  "type": {
    "name": "Development",
    "id": "49-0",
    "$type": "WorkItemType"
  "text": "I keep on testing *samples*.",
  "author": {
    "name": "Minnie Terry",
    "id": "24-0",
    "$type": "User"
  "creator": {
    "name": "Minnie Terry",
    "id": "24-0",
    "$type": "User"
  "id": "124-222",
  "$type": "IssueWorkItem"
}
```

- [Issue Work Items](/help/youtrack/devportal/resource-api-issues-issueID-timeTracking-workItems.html)
- [IssueWorkItem attributes](/help/youtrack/devportal/resource-api-issues-issueID-timeTracking-workItems.html#IssueWorkItem-supported-fields)
- [Read a List of IssueWorkItems](/help/youtrack/devportal/resource-api-issues-issueID-timeTracking-workItems.html#get_all-IssueWorkItem-method)
- [Add a New IssueWorkItem](/help/youtrack/devportal/resource-api-issues-issueID-timeTracking-workItems.html#create-IssueWorkItem-method)

Operations with Specific IssueTimeTrackingOperations with Specific IssueWorkItem

- Privacy & Security
- Terms Of Use
- Trademarks
- Legal

Copyright © 2000–2026 JetBrains s.r.o.
