Commit 2f9f37c
feat(tracker/jira): REST adapter for issue intake
Implements ports.Tracker against Jira Cloud REST. Scope is the project
key plus the tenant site base URL (carried per-call via
TrackerRepo.BaseURL so one adapter instance can serve multiple Jira
tenants under one account).
List builds a JQL query (project + statusCategory + labels + assignee
ORDER BY created DESC) and calls /rest/api/3/search. Quoted scalars are
escaped so a `"` in a label can't break out of the JQL string.
Status-category mapping:
- new / unknown -> open
- indeterminate -> in_progress
- done -> done, or cancelled when the status name is "Cancelled" /
"Won't Do"
Description bodies use Jira's Atlassian Document Format; the adapter
flattens text leaves into plaintext so the intake prompt stays readable
without a heavyweight ADF dependency.
Credentials come from AO_JIRA_EMAIL + AO_JIRA_TOKEN as Basic auth.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent ca5c493 commit 2f9f37c
3 files changed
Lines changed: 664 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments