Use this endpoint to retrieve multiple entities at once, with the possibility to filter the results.
Sorting
Entities are sorted by their name-field by default. You can alter this behaviour by supplying another field-id with the
sort-by
query parameter.
Pagination
The default size of the result is 20, but can be changed to a maximum of 100.
You will find the next
url in the _links
property when there is a next page available.
Filtering
You can filter the results based on the fields
of an entity. There are different operators for the different field types.
Operator |
Description |
eq |
Equals - Exact match with supplied filter. |
contains |
Contains - Partial match with supplied filter. |
gte |
Greater than / Equals - Value is equal or greater than the supplied filter. |
lte |
Less than / Equals - Value is equal or less than the supplied filter. |
Field type |
Operators |
Default operator |
Value format |
string (Single line text) |
eq, contains |
eq |
any string |
text (Multi line text) |
contains |
contains |
any string |
date |
eq, gte, lte |
eq |
string - yyyy-mm-dd |
timestamp |
eq, gte, lte |
eq |
string - ISO 8601 Datetime |
decimal |
eq, gte, lte |
eq |
any number |
user |
eq |
eq |
string - Atlassian account-id |
single-select |
eq |
eq |
string - label of an option |
multi-select |
contains |
contains |
string - label of an option |
You can add a filter as a query parameter.
?fields.FIELD_ID[OPERATOR]=VALUE
For example:
?fields.contact-email[contains]=gmail.com
If no operator is supplied, the default operator will be used:
?fields.contact-name=Tom
?fields.contact-name[eq]=Tom
These query parameters will have the same result, as 'eq'
is the default operator for the field 'contact-name'
Multiple filters
You can add as many filters as you wish by just adding more query parameters.
In the example below you will find all open sales with a revenue of 500 or more.
?fields.sale-balance[gte]=500&fields.sale-status=open
Adding the same field-id/operator combination will result in an OR operator. This can be used for example when
you want to retrieve all closed sales (sales with status 'lost' OR 'won').
?fields.sale-status=won&fields.sale-status=lost