Working with queries
About this task
A query specifies criteria for fetching data from the application. You can create and run a query to fetch data from the DevOps Plan application according to the search criteria that you provide in the query.
Procedure
To build a query, follow these steps:
- Build a query (QueryDef) to specify what data you want. The QueryDef object contains the definition of a query for a DevOps Plan application. After a QueryDef is created, you can use it to get information from the application.
- Create a result set (ResultSet object) to hold the data.
- Execute the query, which populates a result set with the data it fetches from the application.
- Move through the ResultSet object.
Results
Note: If you write a hook that operates only on the current
Entity object, you do not need to use a query.