Issue Work Items
Resource that provides access to work items.
Resource | /api/workItems |
Returned entity | IssueWorkItem. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
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.
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. |
author | User | The user to whom the work is attributed in the work item. |
creator | User | The user who added the work item to the issue. |
text | String | The work item description. |
textPreview | String | Parsed preview of the description. |
type | WorkItemType | The work item type. |
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. |
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. |
attributes | Array of WorkItemAttributes | The list of attributes of the work item. |
Read a List of IssueWorkItems
Get all work items that belong to issues that match a search query. If the query is not provided, all work items from all issues are returned.
Request syntax
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 |
$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. |
query | String | Issue search query. Read more about the search syntax here: Search Query Reference |
startDate | Date | The start date of the time interval where the work item dates belong. Accepts a date in a string format: |
endDate | Date | The end date of the time interval where the work item dates belong. Accepts a date in a string format: |
start | Long | A timestamp in milliseconds indicating the start of the interval where the work item dates belong. |
end | Long | A timestamp in milliseconds indicating the end of the interval where the work item dates belong. |
createdStart | Long | A timestamp in milliseconds indicating the start of the interval during which work items were created. |
createdEnd | Long | A timestamp in milliseconds indicating the end of the interval during which work items were created. |
updatedStart | Long | A timestamp in milliseconds indicating the start of the interval during which work items were updated. |
updatedEnd | Long | A timestamp in milliseconds indicating the end of the interval during which work items were updated. |
author | String | Lets you filter work items by their author. Possible values:
Include a separate |
creator | String | Lets you filter work items by their creator. Possible values:
Include a separate |