From 1e75aaa090cafcb6ee718587860ab42521ac992c Mon Sep 17 00:00:00 2001 From: Liam Morland Date: Thu, 12 Aug 2021 09:46:29 -0400 Subject: [PATCH] ISTWCMS-4968: Add Jira ticket status indicator when the status is not "Done" --- uw_wcms_tools.releasenotes.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uw_wcms_tools.releasenotes.inc b/uw_wcms_tools.releasenotes.inc index 432328e..b24df0c 100644 --- a/uw_wcms_tools.releasenotes.inc +++ b/uw_wcms_tools.releasenotes.inc @@ -112,6 +112,9 @@ function uw_wcms_tools_release_notes_generate(string $start, string $end): strin $jira_ticket = @uw_wcms_tools_jira_api_query('issue/' . $ticket); if (isset($jira_ticket->fields->summary)) { $release_notes .= ': ' . $jira_ticket->fields->summary; + if ($jira_ticket->fields->status->name !== 'Done') { + $release_notes .= ' (' . $jira_ticket->fields->status->name . ')'; + } } else { $use_jira = FALSE; -- GitLab