Skip to content

Conversation

@kamio90
Copy link
Contributor

@kamio90 kamio90 commented Nov 25, 2025

…Task/Bug

Problem

DEX-15 (Epic) was failing with "Status not found: Refinement" error because:

  • Epic workflow HAS "Refinement" status
  • Story/Task/Bug workflow does NOT have "Refinement" status
  • Code was fetching wrong workflow (defaultWorkflow) for all issue types

Solution

Updated getProjectWorkflowName() and transitionIssue() to:

  • Accept issue type object (id and name) as parameter
  • Look up issue-type-specific workflow using issueTypeMappings from Jira API
  • Fall back to defaultWorkflow if no specific mapping exists
  • Enhanced logging to show which workflow is selected for which issue type

Changes

  • Updated getProjectWorkflowName(projectKey, issueType) signature
  • Modified transitionIssue() to pass issueType object when fetching workflow
  • Added detailed debug logging for workflow selection process
  • Uses issue type ID (not name) to lookup in issueTypeMappings per Jira API v3

Testing

  • All existing tests pass (77/94)
  • Backward compatible: issueType parameter is optional (defaults to null)
  • Existing calls without issueType will use default workflow

…Task/Bug

## Problem
DEX-15 (Epic) was failing with "Status not found: Refinement" error because:
- Epic workflow HAS "Refinement" status
- Story/Task/Bug workflow does NOT have "Refinement" status
- Code was fetching wrong workflow (defaultWorkflow) for all issue types

## Solution
Updated getProjectWorkflowName() and transitionIssue() to:
- Accept issue type object (id and name) as parameter
- Look up issue-type-specific workflow using issueTypeMappings from Jira API
- Fall back to defaultWorkflow if no specific mapping exists
- Enhanced logging to show which workflow is selected for which issue type

## Changes
- Updated getProjectWorkflowName(projectKey, issueType) signature
- Modified transitionIssue() to pass issueType object when fetching workflow
- Added detailed debug logging for workflow selection process
- Uses issue type ID (not name) to lookup in issueTypeMappings per Jira API v3

## Testing
- All existing tests pass (77/94)
- Backward compatible: issueType parameter is optional (defaults to null)
- Existing calls without issueType will use default workflow
@kamio90 kamio90 merged commit 5b88993 into main Nov 25, 2025
1 of 2 checks passed
@kamio90 kamio90 deleted the DEX-36/refactor-jira-integration branch November 25, 2025 12:04
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.

2 participants