Operations with Specific IssueWorkItem
This resource lets you work with work items in the specific issue.
Resource | /api/issues/{issueID}/timeTracking/workItems/{itemID} |
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.
This table describes attributes of the IssueWorkItem
entity.
To receive an attribute in the response from server, specify it explicitly in the request parameter
fields
.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
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 date when the work item was created. |
updated | Long | The date when the work item was last updated. |
duration | DurationValue | The duration of the work item. |
date | Long | The date and time that is assigned to 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. |
usesMarkdown | Boolean | Stores the format of the comment text. When |
Read a Specific IssueWorkItem
Get the specific work item of the issue.
Required permissions
Requires access to the issue work item is added to and Read Work Item permission.
Request syntax
{itemID} | Database ID of the work item. |
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 |
Sample
Sample request URI
Sample response body
Update a Specific IssueWorkItem
Update the specific work item of the issue.
Required permissions
Requires Update Work Item permission if work item was created by the user and Update Not Own Work Item otherwise.
Request syntax
{itemID} | Database ID of the work item. |
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 |
Sample
Sample request URI
Sample request body
Delete a Specific IssueWorkItem
Delete the specific work item in the issue.
Required permissions
Requires Update Work Item permission if work item was created by the user and Update Not Own Work Item otherwise.
Request syntax
{itemID} | Database ID of the work item. |
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 |