Serena Agile Web Services API → Item Management → ItemManagement Webservice Methods → CreateWorkItem
Description
This method creates a work item, with a specified set of properties and attributes.
Arguments
| Parameter | Datatype | Description |
|---|---|---|
| token | string | A security token authorizing access to the web service. |
| typeName | string | The system name associated with type of work item to create, such as a Defect, Epic, Story, or Task. System names for these work types are shown in the table below. |
| parentId | int | The Id of the parent item. |
| backlogId | int | The Id of the backlog to which the work item is assigned. |
| name | string | The name to be given to the work item. |
| fields | ItemAttribute[] | An array of attributes and values to be set on the work item. |
System names for work items that can be created with the CreateWorkItem method are shown in the following table:
| Item type | System name |
|---|---|
| Defect | Agile_Defect |
| Epic | Agile_Epic |
| Story | PES-User-Story |
| Task | Agile_Task |