itdove/devaiflow#361: Field discovery only fetches 4 hardcoded issue types, missing Spike, Sub-task, and custom types#362
Merged
Conversation
JIRA field discovery previously only fetched metadata for 4 hardcoded issue types (Bug, Story, Task, Epic), causing incomplete available_for lists and validation failures when creating Spike, Sub-task, or custom issue types. Changes: - Modified _fetch_createmeta() to accept issue_types=None for all types - Updated discover_fields() to pass None instead of hardcoded list - Added 5 comprehensive tests for new functionality - All 3,646 tests pass with no regressions Benefits: - Complete field metadata for all issue types in the project - No more validation failures for non-standard issue types - Eliminates need for manual backend_overrides workarounds - Minimal performance impact (2-6 additional API calls) Fixes #361 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.
This PR does not need a corresponding Jira item.
Description
Fixed field discovery to fetch all available issue types instead of only 4 hardcoded types (Story, Task, Bug, Epic). The previous implementation was missing Spike, Sub-task, and any custom issue types configured in JIRA projects.
Changes:
devflow/jira/field_mapper.pyto dynamically fetch all issue types from the JIRA API/rest/api/2/issuetypeendpointtests/test_field_mapper.pyto verify all issue types are discoveredCHANGELOG.mdto document the fixTechnical approach: Instead of using a static list of 4 issue types, the field discovery now queries the JIRA API to get all available issue types for the project, ensuring that standard types like Spike and Sub-task, as well as any custom issue types, are included in field mapping.
Assisted-by: Claude
Testing
Steps to test
daf jira fields discoveror equivalent commandpytest tests/test_field_mapper.py -vScenarios tested
Deployment considerations