Search
The Search APIs can be used to apply filter conditions to return specific resources based on your requirements. Each module has a search API where you can apply filters and look for particular tasks, projects, templates, or even time entries. These filters are added as query parameters to the Search APIs.
It may take a couple of seconds for a change made in an API to reflect in Search. Give example.
How to add filter query parameters to your search APIs?
Filters are added as query parameters and have a defined structure to get back search results that match the query. You can add multiple filters to a Search API by separating them using commas.
- Syntax: field.operation=value
- Eg: dueDate.lt=2023-09-31, minutes.eq=250
Which operations are permitted for search APIs?
Operation | Definition | Example |
---|---|---|
field.gt | You can use this parameter to indicate a field's value, and the responses will only include those particular resources whose field value is greater than the specified field value. | startDate.gt=2023-09-31 |
field.eq | You can use this parameter to indicate a field's value, and the responses will only include those particular resources whose field value matches the specified field value. | project.eq |
field.lt | You can use this parameter to indicate a field's value, and the responses will only include those particular resources whose field value is less than the specified field value. | startDateActual.lt |
field.ge | You can use this parameter to indicate a field's value, and the responses will only include those particular resources whose field value is greater than or equal to the specified field value. | startDateActual.ge |
field.le | You can use this parameter to indicate a field's value, and the responses will only include those particular resources whose field value is less than or equal to the specified field value. | dueDateActual.le |
field.cn | You can use this param to specify some text and the responses will include those particular resources that contain the given text in their field value. | category.cn |
field.nc | You can use this param to specify some text and the responses will include those particular resources that DO NOT contain the given text in their field value. E | activityName.nc |
Examples for searching using custom fields
Operation | Example | Definition |
---|---|---|
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
| Let's consider
| This will return all the projects whose mentioned field's |
Updated 15 days ago