Enable Search and Filtering on Job Notes in PowerShell Universal
2 votes
Description
When starting a script using Invoke-PSUScript, it is possible to provide additional context via the -Notes parameter. These notes are displayed in the Job Overview and are very useful for tracking the origin and purpose of a job execution.
However, the current Job Overview does not allow searching or filtering based on the contents of the Notes field.
Use Case
We frequently use PowerShell Universal as an execution backend for external systems. An external application invokes the PowerShell Universal API, which then starts a long-running script as a background job.
In these scenarios, we often pass an external reference ID, ticket number, request ID, or correlation ID through the -Notes parameter.
The information is visible in the job details, but it cannot be used to locate jobs later through the search functionality in the Jobs view.
Problem
As the number of jobs grows, it becomes difficult to find a specific job that belongs to a particular external request or transaction.
Users must manually browse through jobs or implement alternative tracking mechanisms outside of PowerShell Universal.
Proposed Enhancement
Extend the Jobs search and filtering functionality to include the Notes field.