Changes between Version 1 and Version 2 of ViewingAllSupportTickets


Ignore:
Timestamp:
01/22/26 04:14:55 (15 hours ago)
Author:
221296
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ViewingAllSupportTickets

    v1 v2  
    33==== Actors: **Administrator (ADMIN)**
    44
    5 **1.** The admin selects All Tickets.
     5**1.** Accessing the Support Ticket Overview.
    66
    7 **2.** The system returns all tickets ordered by creation time.
     7**2.** Retrieving All Support Tickets.
    88
    99
    1010{{{#!sql
    11 SELECT ticket_id, subject, status, created_at
    12 FROM support_ticket
    13 ORDER BY created_at DESC;
     11SELECT t.ticket_id,
     12       ue.first_name || ' ' || ue.last_name AS user,
     13       t.subject, t.status, t.created_at
     14FROM support_ticket t
     15JOIN users u ON t.user_id = u.id
     16JOIN user_entity ue ON ue.id = u.id
     17ORDER BY t.created_at DESC;
     18
     19}}}
    1420
    1521
     22**3.** Updating the Ticket Status.
     23
     24
     25{{{#!sql
     26UPDATE support_ticket
     27SET status = 'RESOLVED'
     28WHERE ticket_id = :ticketId;
     29
    1630}}}