Source: factory.core/ObjTicketTemplate.py
Manages ticket templates with pre-defined
tasks.
Templates allow creating tickets with a standard
subject, description, priority, type, and a set
...
| Method | Signature | Description |
|---|---|---|
| read | read(template_name: str, package: str) -> int |
Load a template by name and package. |
| read_by_guid | read_by_guid(guid: str) -> int |
Load a template by its guid. |
| create | create(template_name: str, package: str = '', subject: str = '', description: str = '', priority: str = TicketPriority.MEDIUM, ticket_type: str = TicketType.USER) -> str |
Create a new ticket template. |
| add_task | add_task(template_guid: str, task_name: str, description: str = '', rank: int = 0) -> str |
Add a task definition to a template. |
| get_templates | get_templates(package: str = '') -> list |
List active templates for a package. |
| get_template_tasks | get_template_tasks(template_guid: str) -> list |
Get task definitions for a template. |
| create_from_template | create_from_template(template_name: str, requested_by: str, requested_by_type: str = RequestedByType.INTERNAL, package: str = '') -> str |
Create a ticket from a template. |
List active templates.