Create
Operation: Create
Creates a task.
POST /api/v01/Task/rest/Create Content-Type: application/json
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| TaskData.ProjectID | string | one of two | Owner project (by internal ID) |
| TaskData.ProjectCode | string | one of two | Owner project (by code) |
| TaskData.TaskText | string | yes | Task title |
| TaskData.StatusID | string | no | Status (if not set — starting status for the type) |
| TaskData.TaskTypeID | string | no | Task type |
| TaskData.PriorityID | string | no | Priority |
| TaskData.AssigneeID | string | no | Assignee |
| TaskData.ReporterID | string | no | Reporter (defaults to the current user) |
| TaskData.OriginalEstimate | number (sec) | no | Original estimate |
| TaskData.StoryPoint | number | no | Story points |
| TaskData.DateTimeStart | string ISO | no | Planned start date |
| TaskData.DateTimeEnd | string ISO | no | Planned end date |
| TaskData.DueDateTime | string ISO | no | Due date |
| TaskData.Label | string | no | Label |
| TaskData.Component | string | no | Component |
| TaskData.FixVersion | string | no | Fix version |
| TaskData.ParentTaskID | string | no | Parent task (if hierarchy) |
| TaskData.ParentTaskKey | string | no | Same by business key |
| TaskData.ParentTaskIntegrationID | string | no | Same by external ID |
| ParentTaskKeyField | string | no | Name of the parent leading key: TaskID/TaskKey/IntegrationID |
| TaskData.MeetingHeaderID | string | no | Link to a meeting |
| TaskData.AgendaID | string | no | Link to an agenda item |
| TaskData.IntegrationID | string | no | Task external ID |
| TaskData.AttachmentID | string | no | Attach an existing attachment to the new task |
| TaskData.Watchers | array | no | List of watcher UserIDs |
| TaskData.Sprints | array | no | List of SprintIDs |
| TaskData.CustomFields | array | no | Custom field values |
| Description | string (HTML) | no | Task description in RTE format; passed at the top level of the request body (not inside TaskData) |
Validation
- Either ProjectID or ProjectCode must be provided. If both are missing — HTTP 500, statusText: "Wrong parameters".
- The request body must contain a TaskData object.
Side effects
- If Description is included in the body, after the task is created the description is stored separately as an HTML file in the attachments subsystem.
Response
Success:
{
"status": "Success",
"statusCode": 200,
"details": {
"TaskKey": "PROJ-42",
"TaskID": "0000004242"
}
}
Error (example of a business error):
{
"status": "Error",
"statusCode": 399,
"statusText": "JBTASKS.TASK_PROJECT_NOT_FOUND"
}
Example
POST /api/v01/Task/rest/Create
Content-Type: application/json
{
"TaskData": {
"ProjectCode": "PROJ",
"TaskText": "Fix login",
"TaskTypeID": "BUG",
"PriorityID": "HIGH",
"AssigneeID": "0000001234",
"DueDateTime": "2026-06-01T18:00:00",
"Watchers": ["0000001111", "0000002222"]
},
"Description": "<p>When a password longer than 20 characters is entered, the form is reset.</p>"
}