Source: factory.core/extend.ticket/ObjTicketTaskMixin.py
Mixin — task CRUD and lifecycle for ticket
objects.
| Method | Signature | Description |
|---|---|---|
| task_read | task_read(guid: str) -> int |
Load a task by its guid. |
| task_create | task_create(ticket_guid: str, task_name: str, description: str = '', assigned_to: str = '', pull_request: str = '', package: str = '') -> str |
Create a new task for a ticket. |
| task_update | task_update() -> None |
Update the current task record. |
| task_complete | task_complete(guid: str) -> None |
Mark a task as DONE. |
| task_cancel | task_cancel(guid: str) -> None |
Mark a task as CANCELLED. |
| task_start | task_start(guid: str) -> None |
Mark a task as IN_PROGRESS. |
| task_get_tasks | task_get_tasks(ticket_guid: str) -> list |
Get all tasks for a ticket, ordered by |
| get_pending_task_count | get_pending_task_count(ticket_guid: str) -> int |
Count incomplete tasks for a ticket. |
| get_completed_task_count | get_completed_task_count(ticket_guid: str) -> int |
Count completed tasks for a ticket. |