Repository navigation
feat(jira): show a ticket as Markdown - #41
Merged
Merged
Conversation
internal/jira gets a ticket's fields as Jira's REST API v3 gives them, and renders the ticket as Markdown for the orchestrator to read: its key and summary, type, status and parent, then its description, subtasks, links and comments, each under its own heading, and nothing for a part that the ticket lacks (decision 58, fact 40). The plan splits the jira step in three: jira-text, jira-client and jira.
|
This was referenced Nov 4, 2026
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.



Step
jira-text(plan row 64): the first of three Jira steps.internal/jirareads a ticket's fields as Jira's REST API v3 gives them, and renders the ticket as Markdown for the orchestrator to read.What changes
Ticket.Commentsisn't read from the issue's JSON.issuetypeandissuelinks.encoding/json/v2matches names by case, soissueTypewould read nothing.Ticket.Markdown():##heading. A part the ticket lacks shows nothing, heading included.blocks DEMO-4,is blocked by DEMO-5.Someonewhen Jira gives none, and its time as Jira gives it. The description and comment bodies go throughinternal/adf.jira-text,jira-clientandjira. adf-blocks is Done (feat(adf): give a ticket's blocks their Markdown shape #40).parentandsubtasks; jira-cli's types fill that gap.orderBy=createdgives the oldest first.Checks
mise run check: green. Coverage 99.4%;internal/jira100%.Someonefallback, the joins and separators, the list markers, and each link side's text. One mutant didn't compile at first (an unused import) and was rewritten.Not in this PR:
jira-client(the HTTP client) comes next, thenjira(baton jira <KEY>, the config section and the Keychain).