# WorkItem

Represents a work item entity. Use it in an import script.

Extends [SubItem](Import-SubItem.html).

## Properties

| Name | Type | Description |
| --- | --- | --- |
| author |  [User](Import-User.html)  |  The author of the entity.   |
| created |  string  |  The date when the work item was created. The expected string format is one of those returned by the `getTimestampFormats` function.   |
| duration |  number  |  The duration of the work item in minutes.   |
| id |  string  |  The ID of the entity.   |
| started |  string  |    The date and time when the work started.     The same as `created` by default.     The expected string format is one of those returned by the `getTimestampFormats` function.    |
| type |  `&apos;workItem&apos;`  |  Identifies this object as a work item. YouTrack infers `&apos;workItem&apos;` for values in [DocumentFields.workItems](Import-DocumentFields.html#property-workItems), so you can omit this property.   |
| updated |  string  |  The date and time when the entity was last updated. The expected string format is one of those returned by the `getTimestampFormats` function.   |
| updatedBy |  [User](Import-User.html)  |  The user who last updated the entity.   |

## See also

[SubItem](Import-SubItem.html) [User](Import-User.html)

