Skip to main content

tickets

Module: tickets

Support tickets with status, priority, and billing items.

Status codes​

StatusACTIVITYColorID
Not startedDRAFT0orange
Awaiting acceptanceDRAFT1orange
AcceptedOPEN2green
RejectedCANCELLED3red
ActiveOPEN4green
InactiveOPEN5orange
Feedback requiredOPEN6orange
TestingOPEN7green
CancelledCANCELLED8red
CompletedCLOSED9black
FailedCLOSED10black
BookedCLOSED11black
NameTypeNullableDefault ValueNotes
PKID
integerTicket ID
fork
forks.ID
integerFork ID (`null` for base module)
ownergroup
groups.ID
integerOwner group ID (`null`=PUBLIC)
creator
integerCreator user ID (defaults to authenticated user on creation)
assigneduser
users.ID
integerAssigned user ID
creationdate
bigintdate_part('epoch', now())Creation date and time as a Unix timestamp (defaults to current date and time on creation)
lastmodified
bigintdate_part('epoch', now())Last modification date and time as a Unix timestamp (auto-reset on modification)
account
accounts.ID
integerAccount ID; is mutually exclusive to `project`
project
projects.ID
integerProject ID; is mutually exclusive to `account`
visibility
smallint0Visibility (`0`=REGULAR, `1`=ARCHIVED, `2`=DELETED)
name
textName
ticketnum
text''Ticket number
date
bigintdate_part('epoch', now())Designated date and time as a Unix timestamp (defaults to current date and time on creation)
duedate
bigintDue date and time as a Unix timestamp
status
smallint0Status (`0`=NOTSTARTED, `1`=AWAITINGACCEPTANCE, `2`=ACCEPTED, `3`=REJECTED, `4`=ACTIVE, `5`=INACTIVE, `6`=FEEDBACKREQUIRED, `7`=TESTING, `8`=CANCELLED, `9`=COMPLETED, `10`=FAILED, `11`=BOOKED)
priority
smallint2Priority (`0`=LOWEST, `1`=LOW, `2`=MEDIUM, `3`=HIGH, `4`=HIGHEST)
description
text''Detailed general description
billingitems
jsonJSON-encoded items (array)
procurementitems
jsonJSON-encoded items (array)
NameUniqueNulls DistinctPrimaryPartialMethodKeys
fk_tickets_accountbtreeaccount
fk_tickets_assigneduserginassigneduser
fk_tickets_forkginfork
fk_tickets_ownergroupginownergroup
fk_tickets_projectginproject
i_tickets_datebtreedate
i_tickets_noforkginfork
i_tickets_noownerginownergroup
pk_ticketsbtreeID
s_tickets_nameginname
s_tickets_ticketnumginticketnum
NameType
c_tickets_associationcheck
dc_tickets_billingitemscheck
dc_tickets_descriptioncheck
dc_tickets_namecheck
dc_tickets_prioritycheck
dc_tickets_procurementitemscheck
dc_tickets_statuscheck
dc_tickets_ticketnumcheck
dc_tickets_visibilitycheck
fk_tickets_accountforeign_key
fk_tickets_assigneduserforeign_key
fk_tickets_forkforeign_key
fk_tickets_ownergroupforeign_key
fk_tickets_projectforeign_key
pk_ticketsprimary_key
Loading...