Repository navigation
fix(jira): fill epic_key from the parent issue for search API responses - #9464
Open
Alexandrshy wants to merge 1 commit into
Open
Alexandrshy wants to merge 1 commit into
Alexandrshy wants to merge 1 commit into
Conversation
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.
pr-type/bug-fix,pr-type/feature-development, etc.Summary
Since #8931 Jira issues are collected through the search API. Its responses have no
fields.epic: that is a field of the Agile API, likefields.sprint(#9410).epic_keywas taken fromfields.epiconly, so it is empty for every issue collected since then, unlessEpic Key Fieldis set in the scope config (#9067).issues.epic_keyis empty as well, andcollectEpics, which builds its list of epics fromepic_key, collects fewer and fewer of them (details in #).In search API responses the epic of an issue is its parent. This PR fills
EpicKeyfromfields.parentwhenfields.epicis absent and the parent is an issue of the epic level (fields.parent.fields.issuetype.hierarchyLevelis1):-1for sub-tasks,0for standard issue types and1for epics.fields.epicstill wins when it is present (raw data collected before fix(jira): collect issues via search API to avoid kanban sub-filter exclusion #8931), andEpic Key Fieldfrom the scope config still overrides both.hierarchyLevelis ignored, so responses that do not carry it are extracted as before.TestExtractIssuesEpicKeyFromParentcovers these cases. Its first case fails onmain.Does this close any open issues?
Closes #9463
Screenshots
N/A