Repository navigation
Read the ticket body from SuperOps conversations when the ticket has none - #7
Merged
Merged
Conversation
…none
On a real SuperOps instance the probe found no body field on the ticket,
so every ticket was classified on its subject line alone. SuperOps keeps
the requester's original message in the ticket's conversation thread
rather than on the ticket.
The probe now looks, in order, for:
- a scalar body field by a known name, then any scalar whose name says
description or body;
- a body held inside an object, selected as `description { content }`;
- a per-ticket conversation query (getTicketConversationList and similar),
returning entries directly or wrapped, with a text and a time field.
With a conversation query, Swoop reads the earliest entry — the message
that opened the ticket — as text. A failed lookup leaves the ticket as it
was. When nothing is found, the warning now lists the ticket's fields, and
Diagnostics shows them, so the next gap can be closed from a screenshot.
The capabilities version is bumped so existing installs re-probe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Q4siuyiAoEj7Qwd4r6Fkv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a real SuperOps instance the probe found no body field on the ticket (none of
description,ticketBody,body,details,content), so every ticket was classified on its subject line alone. SuperOps keeps the requester's original message in the ticket's conversation thread rather than on the ticket.Changes
The probe now looks, in order, for:
description { content };getTicketConversationListand similar), returning entries directly or wrapped, with a text and a time field.With a conversation query, Swoop reads the earliest entry (the message that opened the ticket) as text. A failed lookup leaves the ticket as it was.
When nothing is found, the warning lists the ticket's fields, and Diagnostics shows them. Settings, Setup and Diagnostics show where the body comes from. The capabilities version is bumped, so existing installs re-probe on their next poll.
Testing
🤖 Generated with Claude Code
https://claude.ai/code/session_017Q4siuyiAoEj7Qwd4r6Fkv
Generated by Claude Code