Source: factory.core/extend.ticket/ObjTicketInternal.py
Internal DB provider for ticket operations.
Delegates every operation to ObjTicket which
persists to the data_ticket table via ObjData.
| Method | Signature | Description |
|---|---|---|
| create | create(subject: str, description: str = '', priority: str = 'MEDIUM', ticket_type: str = 'USER', requested_by: str = '', requested_by_type: str = 'INTERNAL', server_id: str = '') -> dict |
Create a ticket in the internal DB. |
| update | update(guid: str, subject: str = '', description: str = '', priority: str = '') -> dict |
Update a ticket in the internal DB. |
| change_status | change_status(guid: str, new_status: str, action_by: str = '') -> dict |
Change ticket status in the internal DB. |
| assign | assign(guid: str, user: str, action_by: str = '') -> dict |
Assign ticket to a user in the internal DB. |
| add_comment | add_comment(guid: str, text: str, commented_by: str = '') -> dict |
Add a comment in the internal DB. |
| get_ticket | get_ticket(guid: str) -> dict |
Read a ticket from the internal DB. |
| list_tickets | list_tickets(package: str = '', status: str = '', priority: str = '', assignee: str = '') -> list |
List tickets from the internal DB. |
| close | close(guid: str, action_by: str = '') -> dict |
Close a ticket in the internal DB. |
| resolve | resolve(guid: str, action_by: str = '', notes: str = '') -> dict |
Resolve a ticket in the internal DB. |
| escalate | escalate(guid: str, action_by: str = '') -> dict |
Escalate a ticket in the internal DB. |