createTask
This method allows adding:
- Kanban task;
To insert each of these items, it is necessary to follow the standard documented below.
| Java class | |
|---|---|
| Request | web\wwwroot\ws\java\task\CreateTaskRequestType.java |
| Return | web\wwwroot\ws\java\task\CreateTaskResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| WORKSPACE | X | Workspace prefix |
| TASKTYPE | X | Task type |
| PRIORITY | X | Priority name |
| TITLE | X | Title |
| DTDEADLINE | Deadline. It must be entered in the YYYY-MM-DD format. | |
| DESCRIPTION | Description | |
| IDREPORTER | X | Reporter user ID |
| IDASSIGNEE | Assignee user ID | |
| IDCREATOR | X | Creator user ID |
| ATTRIBUTE | X | Example: identifier_of_attribute1=value_of_attribute1; identifier_of_attribute2=value_of_attribute2; identifier_of_attribute3=value_of_attribute3. Example with a multivalued attribute: identifier_of_attribute1=value1_of_attribute1,value2_of_attribute1,value3_of_attibute1 Note: For attributes with a numeric value, the decimal place separator must be "." (dot). For date fields, the value must have the āY-M-Dā (Year-Month-Day) format. |
| SPRINT | Sprint title | |
| ESTIMATE | Task estimate | |
| DTSTARTPLAN | Scheduled start date. It must be entered in the YYYY-MM-DD format. | |
| INITIATIVE | Initiatives. Example: initiative1;initiative2;initiative3. |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:task">
<soapenv:Header/>
<soapenv:Body>
<urn:createTask>
<!--You may enter the following 13 items in any order-->
<urn:Workspace>?</urn:Workspace>
<urn:TaskType>?</urn:TaskType>
<urn:Priority>?</urn:Priority>
<urn:Title>?</urn:Title>
<urn:DtDeadline>?</urn:DtDeadline>
<urn:Description>?</urn:Description>
<urn:IdReporter>?</urn:IdReporter>
<urn:IdAssignee>?</urn:IdAssignee>
<urn:IdCreator>?</urn:IdCreator>
<urn:Attribute>?</urn:Attribute>
<urn:Sprint>?</urn:Sprint>
<urn:Estimate>?</urn:Estimate>
<urn:DtStartPlan>?</urn:DtStartPlan>
<urn:Initiative>?</urn:Initiative>
</urn:createTask>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID # | Description |
|---|---|
| return | SUCCESS: Record successfully created. Task ID. FAILURE: Message with the error found. |