Add conditional service request row to ticket overview

This commit is contained in:
Meik
2026-07-17 18:48:48 +02:00
parent 0fef3ad49c
commit 62a5c97cbd
9 changed files with 338 additions and 5 deletions

View File

@@ -286,6 +286,12 @@ namespace C4IT.FASD.Cockpit.Communication
if (string.IsNullOrWhiteSpace(key))
continue;
if (string.Equals(key, "ServiceRequestsEnabled", StringComparison.OrdinalIgnoreCase))
{
result[key] = 1;
continue;
}
if (TicketOverviewRelations.TryGetValue(key, out var scopeDictionary) &&
scopeDictionary != null &&
scopeDictionary.TryGetValue(scopeKey, out var definitions) &&

View File

@@ -308,6 +308,58 @@
}
],
"Tickets": [
{
"TicketId": "8f3ef61d-6f59-44ee-ae2e-38e7dd9d6f61",
"UserId": "a2164ecd-791f-482c-bea3-f089f14bec8a",
"TileKey": "ServiceRequestsNew",
"UseRoleScope": false,
"ActivityType": "SPSActivityTypeServiceRequest",
"DisplayName": "SRQ00001",
"Summary": "Neue Software fuer den Arbeitsplatz bereitstellen",
"StatusId": "New",
"UserDisplayName": "Busch, Andrea",
"UserAccount": "AB014",
"UserDomain": "CONTOSO"
},
{
"TicketId": "8f3ef61d-6f59-44ee-ae2e-38e7dd9d6f61",
"UserId": "a2164ecd-791f-482c-bea3-f089f14bec8a",
"TileKey": "ServiceRequestsActive",
"UseRoleScope": false,
"ActivityType": "SPSActivityTypeServiceRequest",
"DisplayName": "SRQ00001",
"Summary": "Neue Software fuer den Arbeitsplatz bereitstellen",
"StatusId": "InProgress",
"UserDisplayName": "Busch, Andrea",
"UserAccount": "AB014",
"UserDomain": "CONTOSO"
},
{
"TicketId": "8f3ef61d-6f59-44ee-ae2e-38e7dd9d6f61",
"UserId": "a2164ecd-791f-482c-bea3-f089f14bec8a",
"TileKey": "ServiceRequestsCritical",
"UseRoleScope": false,
"ActivityType": "SPSActivityTypeServiceRequest",
"DisplayName": "SRQ00001",
"Summary": "Neue Software fuer den Arbeitsplatz bereitstellen",
"StatusId": "InProgress",
"UserDisplayName": "Busch, Andrea",
"UserAccount": "AB014",
"UserDomain": "CONTOSO"
},
{
"TicketId": "8f3ef61d-6f59-44ee-ae2e-38e7dd9d6f61",
"UserId": "a2164ecd-791f-482c-bea3-f089f14bec8a",
"TileKey": "ServiceRequestsNewInfo",
"UseRoleScope": false,
"ActivityType": "SPSActivityTypeServiceRequest",
"DisplayName": "SRQ00001",
"Summary": "Neue Software fuer den Arbeitsplatz bereitstellen",
"StatusId": "OnHold",
"UserDisplayName": "Busch, Andrea",
"UserAccount": "AB014",
"UserDomain": "CONTOSO"
},
{
"TicketId": "7e852bb9-420b-4caa-b79a-9178d793fc06",
"UserId": "a2c35ad1-7cc7-4b2b-9aa5-d03fdaecd155",