Source: factory.core/ObjTicketTask.py
Manages tasks within a ticket.
Each ticket can have multiple tasks that are tracked
independently. Tasks have their own status lifecycle
(PENDING -> IN_PROGRESS -> DONE/CANCELLED) and can
...
| Method | Signature | Description |
|---|---|---|
| read | read(guid: str) -> int |
Load a task by its guid. |
| create | 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. |
| update | update() -> None |
Update the current task record. |
| complete | complete(guid: str) -> None |
Mark a task as DONE. |
| cancel | cancel(guid: str) -> None |
Mark a task as CANCELLED. |
| start | start(guid: str) -> None |
Mark a task as IN_PROGRESS. |
| get_tasks | get_tasks(ticket_guid: str) -> list |
Get all tasks for a ticket, ordered by rank. |
| get_pending_count | get_pending_count(ticket_guid: str) -> int |
Count incomplete tasks for a ticket. |
| get_completed_count | get_completed_count(ticket_guid: str) -> int |
Count completed tasks for a ticket. |
List all tasks for a ticket.