Skip to content

fix(MORG-23): remove Notion-specific assumptions and add Jira getStatuses - #17

Merged
developerdavi merged 1 commit into
mainfrom
morg-23
Mar 5, 2026
Merged

developerdavi merged 1 commit into
mainfrom
morg-23

Conversation

@developerdavi

Copy link
Copy Markdown
Owner

Closes MORG-23

Changes

src/commands/tickets.ts

  • renderTicketDetail: removed hardcoded https://notion.so/... URL construction — now uses ticket.url directly (which is already the correct provider URL)
  • runTicketActions: same fix for the browser/copy URL variable

src/integrations/jira/client.ts

  • Implemented getStatuses(): queries /project/{key}/statuses to get all statuses defined in the project, deduplicates by name, and falls back to /status if no project key is configured
  • This gives the "Change status" action in morg tickets a proper select list instead of a plain text prompt when using Jira

…uses

- tickets.ts: use ticket.url directly instead of reconstructing a
  hardcoded notion.so URL in both renderTicketDetail and runTicketActions
- jira/client.ts: implement getStatuses() using the project statuses
  endpoint so the status-change action shows a select list instead of
  a plain text prompt
@developerdavi
developerdavi merged commit ed382c0 into main Mar 5, 2026
@developerdavi
developerdavi deleted the morg-23 branch March 5, 2026 22:54
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