Skip to content

feat: add ticket splitting#6

Merged
mpge merged 1 commit into
mainfrom
feat/ticket-splitting
Apr 8, 2026
Merged

feat: add ticket splitting#6
mpge merged 1 commit into
mainfrom
feat/ticket-splitting

Conversation

@mpge

@mpge mpge commented Apr 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Add TicketSplitService with split_ticket() method that creates a new ticket from a reply's content
  • Copies metadata (requester, tags, priority, department) from the source ticket to the new ticket
  • Creates bidirectional links via a new ticket_links table
  • Logs activity on both source ("Split to #REF") and new ("Split from #REF") tickets
  • REST API endpoint: POST /escalated/v1/tickets/split with reply_id parameter
  • Registers the new controller in Api_Bootstrap

Test plan

  • Verify split_ticket() creates a new ticket with correct metadata copied from the source
  • Verify reply body becomes the new ticket's description
  • Verify tags are copied to the new ticket
  • Verify bidirectional links are created between source and new tickets
  • Verify activity logs are created on both tickets
  • Verify the escalated_ticket_split action fires
  • Verify invalid reply ID throws an exception

Add TicketSplitService that creates a new ticket from a reply's content,
copies metadata (requester, tags, priority, department), creates
bidirectional links via a new ticket_links table, and logs activity on
both source and new tickets. Includes REST API endpoint POST
/escalated/v1/tickets/split and comprehensive PHPUnit tests.
@mpge
mpge merged commit d89b975 into main Apr 8, 2026
3 checks passed
@mpge
mpge deleted the feat/ticket-splitting branch April 8, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant