Skip "Won't Do" issues from changelog

[MAILPOET-1867]
This commit is contained in:
Ján Mikláš
2019-03-21 15:37:27 +01:00
committed by Pavel Dohnal
parent f10014d864
commit 7a8ba52b57
2 changed files with 7 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ class Jira {
const CHANGELOG_FIELD_ID = 'customfield_10500';
const RELEASENOTE_FIELD_ID = 'customfield_10504';
const WONT_DO_RESOLUTION_ID = '10001';
const PROJECT_MAILPOET = 'MAILPOET';
const PROJECT_PREMIUM = 'PREMIUM';
@@ -60,7 +62,7 @@ class Jira {
function getIssuesDataForVersion($version) {
$changelog_id = self::CHANGELOG_FIELD_ID;
$release_note_id = self::RELEASENOTE_FIELD_ID;
$issues_data = $this->search("fixVersion={$version['id']}", ['key', $changelog_id, $release_note_id, 'status']);
$issues_data = $this->search("fixVersion={$version['id']}", ['key', $changelog_id, $release_note_id, 'status', 'resolution']);
// Sort issues by importance of change (Added -> Updated -> Improved -> Changed -> Fixed -> Others)
usort($issues_data['issues'], function($a, $b) use ($changelog_id) {
$order = array_flip(['added', 'updat', 'impro', 'chang', 'fixed']);