Here are some helpful queries, formats, and functions to use in Jira Service Management (JSM).
Approvals
There are many helpful JQL functions for querying approval data. A function allows the use of variables in a JQL query. The function substitutes the applicable values at the time the query is run. This avoids the need to hard code static data. E.g. Use a query with a function like assignee = currentUser() instead of the less flexible assignee = “Rachel Wright”.
Common Functions
-
approved()
-
approver()
-
myApproval()
-
myPending()
-
myPendingApproval()
-
pending()
-
pendingBy()
Examples
Requests
Requests are how Jira items are represented, in the self-service portal, to customers or end users. A request is a simplified view of item data.
Tip: Don’t forget to enclose any multi-word work type or request type names in quotes.
Organizations
Organizations are used to group customers together and determine which requests they can view in the customer portal. You can query by organization membership and name.
Tip: Don’t forget to enclose any multi-word organization names in quotes.
Service Level Agreements
SLAs represent a goal or a commitment between a service provider and a customer. For example, a high priority request might have a completion goal of one hour. A low priority request might have a first response goal of four hours. There are many helpful JQL functions for querying SLA data.
Common Functions
-
breached()
-
completed()
-
elapsed()
-
everBreached()
-
paused()
-
remaining()
-
running()
-
withinCalendarHours()
Examples
Resources
See the Jira Service Management JQL documentation for additional functions, fields, operators, and clauses.
Back to intro or article list