From 8498d82e108e80c4024d3ef1b51096011f853248 Mon Sep 17 00:00:00 2001 From: Niek Rabelink Date: Tue, 15 Sep 2026 22:12:14 +0200 Subject: [PATCH] Jira 25 --- jira.php | 441 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 278 insertions(+), 163 deletions(-) diff --git a/jira.php b/jira.php index 4a33f9d..1e31123 100644 --- a/jira.php +++ b/jira.php @@ -202,6 +202,20 @@ foreach ($usedProjectKeys as $uKey => $val) { if (empty($activeProjectKeys)) { $activeProjectKeys = array_fill_keys(['SD', 'IN', 'AAN', 'GEN'], true); } +if (!empty($userQueueFilters)) { + $filteredActiveKeys = []; + foreach ($userQueueFilters as $code) { + $clean = strtoupper(trim($code)); + if ($clean === 'DX') { + $filteredActiveKeys['SD'] = true; + } elseif ($clean !== 'MY_QUEUES') { + $filteredActiveKeys[$clean] = true; + } + } + if (!empty($filteredActiveKeys)) { + $activeProjectKeys = $filteredActiveKeys; + } +} // Haal projectstatussen op uit jiraData $rawProjectStatuses = $jiraData['project_statuses'] ?? []; @@ -587,54 +601,18 @@ $statusesJson = json_encode($allStatusesList, JSON_HEX_TAG | JSON_HEX_APOS | JSO - -
+ +
- +
-
- +
+ + Status: +
- - + +
@@ -645,7 +623,7 @@ $statusesJson = json_encode($allStatusesList, JSON_HEX_TAG | JSON_HEX_APOS | JSO
-
+
{ - const pKey = (proj.key || '').toUpperCase(); + const pKey = (proj.key || '').toUpperCase().trim(); const pKeyLower = pKey.toLowerCase(); const pColor = proj.color || 'slate'; const styles = colorClasses[pColor] || colorClasses.slate; const statuses = proj.statuses || []; - html += ` -
-
-
- ${escapeHtml(pKey)} - ${escapeHtml(proj.name || pKey)} - (0) -
-
- - • - -
-
-
- `; - + let statusRowsHtml = ''; statuses.forEach((st, sIdx) => { const sNorm = (st.name || '').toLowerCase().trim(); const compoundVal = `${pKeyLower}::${sNorm}`; @@ -1253,10 +1216,10 @@ function renderStatusCheckboxes() { } const safeKey = `${pKey}_${sNorm.replace(/[^a-z0-9]/gi, '_')}`; - const safeId = `chkStatus_${pIdx}_${sIdx}`; + const safeId = `chkStatus_${pKey}_${sIdx}`; - html += ` -