stable

Clone or download

Read-only

fix: search US of Epic from the bottom up in Jira

Requesting /epic/:id/issues produces the following error: ---8<---------------------- [Tuleap\Tracker\Creation\JiraImporter\JiraConnectionException (400)] Query `GET /rest/agile/1.0/epic/10303/issue?fields=id&startAt=0` was not successful (code: 400, message: "Bad Request"). Jira errors: The request contains a next-gen issue. This operation can't add next-gen issues to epics. To add a next-gen issue to an epic, use the Edit issue operation and set the parent property (i.e., '"parent":{"key":"PROJ-123"}' where "PROJ-1 23" has an issue type at level one of the issue type hierarchy). See <a href="https://developer.atlassian.com/cloud/jira/platform/rest/v2/"> developer.atlassian.com </a> for more details. ---8<---------------------- Jira API recommendation is to search US that have parent Epic: https://support.atlassian.com/jira-software-cloud/docs/upcoming-changes-epic-link-replaced-with-parent/ Closes request #39707: [JIRA Import] Can't import next gen ticket Change-Id: Id5613a30b48ceb66d27baaabb73830b58ef793ca

Modified Files

Name
M plugins/jira_import/include/JiraAgile/IssuesLinkedToEpicsRetriever.php +3 −3 Go to diff View file
M plugins/jira_import/include/JiraAgile/JiraEpicIssuesRetriever.php +1 −1 Go to diff View file
M plugins/jira_import/include/JiraAgile/JiraEpicIssuesRetrieverFromAPI.php +12 −5 Go to diff View file
M plugins/jira_import/include/Project/CreateProjectFromJira.php +1 −1 Go to diff View file
M plugins/jira_import/tests/unit/JiraAgile/IssuesLinkedToEpicsRetrieverTest.php +6 −6 Go to diff View file
M plugins/jira_import/tests/unit/JiraAgile/JiraEpicIssuesRetrieverFromAPITest.php +4 −4 Go to diff View file