Skip to content

(COWIN-4) Carry Jira bodies through search results - #2814

Merged
numnx merged 1 commit into
feature/sprint-COWIN-4-fix-jira-tickets-missing-issue-body-implementationfrom
task/feature-sprint-c-t01-codex-b219acf3-mrej14a1
Jul 10, 2026
Merged

(COWIN-4) Carry Jira bodies through search results#2814
numnx merged 1 commit into
feature/sprint-COWIN-4-fix-jira-tickets-missing-issue-body-implementationfrom
task/feature-sprint-c-t01-codex-b219acf3-mrej14a1

Conversation

@numnx

@numnx numnx commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

🧩 Task: Carry Jira bodies through search results

Automated task PR opened by Code UX for T01.

📋 Summary

Sprint: Sprint 4 · Fix Jira Tickets missing issue body · Task: T01

Fix Jira issue imports so full issue bodies are carried into sprint prompts, persisted linked issue records, and subsequent planning/replanning flows instead of degrading to the empty-body fallback.

🤖 Model & Provider

Provider Codex CLI
Model gpt-5.5

⏱️ Timing

Started 2026-07-10 06:00:22 UTC
Finished 2026-07-10 06:06:01 UTC
Duration 5m 39s

📊 Token Usage

Metric Value
Input tokens 78,347
Cached input tokens 959,104
Output tokens 8,226
Total tokens 1,045,677
Invocations 1
Tool calls 44
Active time 3m 56s

Included usage estimate (subscription/local login): $1.12

✅ QA Review

⏳ QA review runs after this PR is opened. Check the task card in the dashboard for the outcome once it lands.

📝 Full Task Prompt
## Objective
Ensure Jira issue searches carry the full issue body through the typed backend search result, not only a truncated preview, so imported Jira tickets can feed planner prompts.

## Scope
- `src/contracts/project-management-types.ts`
- `src/services/jira-api-client.ts`
- `src/services/sprint-issue-service.ts`
- `tests/backend/services/jira-api-client.test.ts`
- `tests/backend/services/sprint-issue-service.test.ts`
- Symbols: `JiraIssueSearchResult`, `searchIssues`, `normalizeJiraIssueSummary`, `RepositoryIssueSearchResult`

## Implementation Requirements
1. Extend the Jira search result contract to carry full description markdown separately from `bodyPreview`.
2. In `src/services/jira-api-client.ts`, extract the Jira description once and return both the full description markdown and the existing truncated preview.
3. In `normalizeJiraIssueSummary`, populate `issueBodyMarkdown`, `issueCreatedAt`, and `issueUpdatedAt` from Jira search results while preserving existing display fields.
4. Add regression coverage proving Jira generic issue search returns full `issueBodyMarkdown` even when `bodyPreview` is truncated or only used for cards.

## Constraints
- Preserve existing Jira search filters, sort behavior, status handling, and result limit clamping.
- Do not remove or repurpose `bodyPreview`; dashboard issue cards still need concise previews.
- Keep GitHub, GitLab, and non-Jira importer behavior unchanged except for shared type compatibility.

## Verification
- `pnpm exec vitest run tests/backend/services/jira-api-client.test.ts tests/backend/services/sprint-issue-service.test.ts`
- Success means Jira search results include full `issueBodyMarkdown`, preview behavior remains unchanged, and existing Jira search tests still pass.
🌿 Branch Info

Base: feature/sprint-COWIN-4-fix-jira-tickets-missing-issue-body-implementation
Head: task/feature-sprint-c-t01-codex-b219acf3-mrej14a1


🤖 Generated by Code UX

@numnx
numnx merged commit 4b776f0 into feature/sprint-COWIN-4-fix-jira-tickets-missing-issue-body-implementation Jul 10, 2026
@numnx
numnx deleted the task/feature-sprint-c-t01-codex-b219acf3-mrej14a1 branch July 10, 2026 06:06
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