Skip to main content

Query Management

The Query Management option lets you customize the Job Entries that are displayed on the Monitor or History screens, so you can easily view the data that you want. You can create Queries that users can access to customize their views.

For example, you could create Queries for:

  • Failed Jobs on certain Agents
  • Jobs that are on hold for the next 5 hours
  • Jobs that failed on an Agent within the last 3 hours

After you create a Query, you can select it from the Queries drop-down menu in the Monitor or History screens to filter the information.

Example Queries​

A new installation of the JAMS Web Client includes five example Queries:

Query NameTypeFiltersDefault
System DefaultMonitorNoneNo
Executing NowMonitorStatus: ExecutingYes, for the Monitor
Starting SoonMonitorFuture Window: 02:00:00, HoldTimeNo
Needs AttentionMonitorStatus: Warning, Error, Fatal, Held, or QuestionNo
24 Hour HistoryHistoryPast Window: 23:59:59, CompletionTimeYes, for the History

The example Queries are ordinary Queries. You can edit them, delete them, or set a different Query as the default. They are added only when the installation has no Queries. See Managing Queries.

Queries and Filters Hierarchy​

A Query can contain one or more Filters to modify how data is displayed. When you apply more than one Filter, the results must match all of the Filters you selected. If you have multiple values within the same Filter, the results can match any of those values.

The example below shows the hierarchy for a Query that looks for failed Jobs on either of two Agents: SampleAgent and SampleAgent2.

  • Query: Failed Jobs by Agent Name

    • Filter: Status

      • Filter Value: Fatal
    • Filter: Executing Agents

      • Filter Values: SampleAgent or SampleAgent2

Who can view a Query​

Any user can view Queries in the drop-down menu that have been created. However, when a user selects/applies a Query from the drop-down menu in the Monitor or History screens, the Query is applied for only that logged in user. If the user logs out or switches screens in the JAMS Web Client and returns to the Monitor or History screens, the selected Query is still applied.

If another user logs in to the JAMS Web Client from the same browser, the previous user's Query is not applied.

Types of Filters​

Entering Multiple Filter Values​

To enter multiple values for a Filter, such as 3 Entry IDs, add a value, click + Add, and then repeat. Only one value can be entered at a time. In the Future Window and Past Window drawers, the + Add button is directly below the Category field. It adds the current value to the list in the drawer; it does not save the drawer.

The values you add or remove in a Filter drawer are not saved until you close it with a button at the top or bottom of the drawer:

  • Save – Keeps every value you added or removed since you opened the drawer, closes the drawer, and updates the Filter. This button is unavailable until you make a change.
  • Cancel – Discards every value you added or removed since you opened the drawer, closes the drawer, and returns the Filter to the values it had when you opened it. If you just added the Filter, Cancel also removes its tile.

After you save, the Filter's tile shows how many values it contains, such as 1 entry or 3 entries. A Filter with no values shows No entries.

Job/Entry Filters​

Filter NameDescriptionExample
StatusThis option is the execution state of the Job. Values: Status - Unknown, Successful, Informational, Warning, Error, Execution, Fatal, Executing, Held, Pending, DependencyWait, Timed, NeedInstruction, or Help. You can also filter by a color for a status in the Monitor.Display Jobs with a final status of Fatal.
JAMS Entry NumberThis option is the unique identifier for the Job entry in the Monitor and History screens. Values: JAMS Entry Number - Enter an Entry ID that you want to view.Display Jobs with an Entry ID of 159.
NameThis option is the name of the Job. Values: Name - Enter the name of the Job that you want to view.Display Jobs named SleepJob.

Date Filters​

Filter NameDescriptionExample
Date RangeThis option includes the start date, end date, start time, end time, and category/state of the Job. Values:
  • Start Date - Click the icon to select a date using the format mm/dd/yyyy.
  • End Date - Click the icon to select a date using the format mm/dd/yyyy.
  • Start Time - Click the icon to select a time using the format hh:mm:ss.
  • End Time - Click the icon to select a time.
  • Category - Select ScheduledTime, StartTime, CompletionTime, or HoldTime.
Display Jobs that started on April 15, 2026 between 12:00 am and 8:00 am.
Future WindowThis option lets you display Jobs from the current time to a set number of days, hours, minutes, or seconds in the future. This is a rolling window of time. Future Window is available to add to Monitor Queries only, because History Queries cannot display future dates. It does not appear in the + Add Filter drop-down menu for a History Query. If a History Query already has a Future Window Filter, it is still displayed and can still be edited. Values:
  • Time Span - Use hh:mm:ss or d.hh:mm:ss. A new value starts at 00:00:00.
  • Category - On a Monitor Query, the Category is read-only and set to HoldTime, with a note that Monitor future window filters always use Hold Time.
Display Jobs that are on hold for the next 5 hours based on the current time.
Past WindowThis option lets you display Jobs from the current time to a set number of days, hours, minutes, or seconds in the past. This is a rolling window of time. This option is available for both Monitor and History Queries. Values:
  • Time Span - Use hh:mm:ss or d.hh:mm:ss. A new value starts at 00:00:00.
  • Category - CompletionTime is selected by default. You can select ScheduledTime, StartTime, CompletionTime, or HoldTime.
Display Jobs that have completed in the last 5 hours based on the current time.

Agent Filter​

Filter NameDescriptionExample
Executing AgentsThis option lets you filter by the type and the name of the Agent that the Job is assigned to. Values:
  • Type - (Optional) Select Local, Outgoing, Incoming, SSH, SSHAgentX, or Passive.
  • Agent - Select the name of Agent.
Filter by Outgoing Agents named SampleAgent.

Access Permissions​

You must have Execute and Inquire permissions in the Configuration section in the Access Control to create, edit, and delete Queries. Your user account must have Inquire permission to use Queries to filter the Monitor or History screens.

Next Step​