← All tutorialsTicketing

Jira ticket from Sentry error

Sentry webhook fires, summarize the stack trace, ticket.create in Jira/Linear, then ticket.update with the deploy SHA once linked.

Cost~$0.01 per ticket
Operations
text_generation.generateticket.createticket.update

Prerequisites

  • Jira or Linear OAuth at /connected-apps.
  • ticket.create + ticket.update enabled.

Walkthrough

1. Summarize the trace

GPT-4o-mini turns the stack into a 40-word ticket title + 5-bullet description.

2. Create

ticket.create returns `id` + `url`. Stash both against the Sentry event in your DB to avoid duplicates.

bash# Cross-vendor ticket create.
curl -X POST https://www.upivia.com/v1/service-requests \
  -H "Authorization: Bearer $AGENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "service":"ticket",
    "operation":"create",
    "payload":{"project":"BUG","title":"<summary>","body":"<bullets>","labels":["sentry","triage"]}
  }'

3. Update on deploy

When the fix ships, ticket.update with `state:'closed'` and a comment referencing the deploy SHA.

Next steps

Audit every call at /audit-logs, watch spend at /usage, and tune budgets per service on the agent's page.

Create an account →