File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Scheduler Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ function Invoke-ListScheduledItems {
1919 $ShowHidden = $Request.Query.ShowHidden ?? $Request.Body.ShowHidden
2020 $Name = $Request.Query.Name ?? $Request.Body.Name
2121 $Type = $Request.Query.Type ?? $Request.Body.Type
22+ $SearchTitle = $Request.query.SearchTitle ?? $Request.body.SearchTitle
2223
2324 if ($ShowHidden -eq $true ) {
2425 $ScheduledItemFilter.Add (' Hidden eq true' )
@@ -46,6 +47,10 @@ function Invoke-ListScheduledItems {
4647 $Tasks = $Tasks | Where-Object { $_.command -eq $Type }
4748 }
4849
50+ if ($SearchTitle ) {
51+ $Tasks | Where-Object { $_.Name -like $SearchTitle }
52+ }
53+
4954 $AllowedTenants = Test-CIPPAccess - Request $Request - TenantList
5055
5156 if ($AllowedTenants -notcontains ' AllTenants' ) {
You can’t perform that action at this time.
0 commit comments