Filter changes
This commit is contained in:
+15
-4
@@ -4671,15 +4671,26 @@ let activePlannerJiraQueue = ''; // '': Alle, 'my': Mijn, 'DX': DX Queue, 'SD':
|
||||
|
||||
function isIssueInQueue(iss, qCode) {
|
||||
if (!qCode) return true;
|
||||
const code = qCode.toUpperCase();
|
||||
const code = qCode.toUpperCase().trim();
|
||||
let pKey = (iss.project_key || '').toUpperCase().trim();
|
||||
if (!pKey && iss.key) {
|
||||
const parts = iss.key.split('-');
|
||||
if (parts.length > 0) pKey = parts[0].toUpperCase().trim();
|
||||
}
|
||||
const pName = (iss.project || '').toLowerCase().trim();
|
||||
const isSd = (pKey === 'SD' || pName.includes('servicedesk') || !pKey);
|
||||
|
||||
const ol = (iss.onderwerp_logging || '').toLowerCase().trim();
|
||||
const sum = (iss.summary || '').toLowerCase();
|
||||
|
||||
const dxTerms = ['koppeling', 'sso', 'endpoint', 'rest', 'datadump', 'uwv', 'migratie', 'api', 'webhook', 'integrat'];
|
||||
const matchesDx = dxTerms.some(t => ol.includes(t) || sum.includes(t));
|
||||
const dxTerms = ['koppeling', 'sso', 'endpoint', 'rest', 'datadump', 'uwv', 'migratie'];
|
||||
const matchesDx = isSd && dxTerms.some(t => ol.includes(t) || sum.includes(t));
|
||||
|
||||
if (code === 'DX') return matchesDx;
|
||||
if (code === 'SD') return !matchesDx;
|
||||
if (code === 'SD') return isSd && !matchesDx;
|
||||
if (code === 'IN') return (pKey === 'IN' || pName.includes('interface'));
|
||||
if (code === 'AAN') return (pKey === 'AAN' || pName.includes('aanvraag'));
|
||||
if (code === 'GEN') return (pKey === 'GEN' || pName.includes('general') || pName.includes('algemeen'));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user