...
You can filter the returned list using the _filters
parameter.
Name | Example | Description |
---|---|---|
owner_type | ||
type | ||
invitation | ||
read | read(no) or read(0) or read(n) | |
parent_id | ||
thread_id | ||
staff_id | ||
priority_id | ||
class_id | ||
task_id | ||
message_id | ||
owner_id | ||
visibility | ||
medium | ||
against_type | against_type(company,job) | Only return activities against the given type |
against_id | against_id(12,12) | Only return activities against object with given ids. |
order_by_asc | order_by_asc(date_ended) | date_started, date_created, date_ended, date_logged and id billable, nonbillable |
order_by_desc | Same as order_by_asc but opposite direction | |
date_created_before | ||
date_created_after | ||
date_started_before | ||
date_started_after | ||
date_logged_before | ||
date_logged_after | ||
date_ended_before | ||
date_ended_after | ||
max_id | ||
min_id | ||
<field_name>_greater_than(<value>), <field_name>_less_than(<value>), <field_name>_greater_than_or_equal(<value>), <field_name>_less_than_or_equal(<value>)
| _filters=id_greater_than(5) | Available fields: id |
date_logged_before | _filters=date_logged_before(14000000000) | The logged date before this date provided. Accept unix timestamp |
date_logged_after | _filters=date_logged_after(13000000000) | The logged date after this date provided. Accept unix timestamp |
staff_involved | _filters=staff_involved(1035, 1025) | The ids of the staff members who interact in the thread |
scope | _filters=scope(internal) | The scope accept internal or external |
Handling the response
Sample Response
...
Code Block | ||
---|---|---|
| ||
{
"meta": {
"message": "Everything executed as expected.",
"status": "ok",
"more_info": "https://affinitylive.jira.com/wiki/display/APIS/Status+Codes#ok"
},
"response": {
"threads" : [
{
"total_activities": 10,
"id": 123,
"activities": [
{
"owner": { …. },
"subject": "..",
...
"interactions": {
"staff": [1,2,3],
"affiliations": [4,5,6]
}
},
]
}
...
],
"staff": [{ "id": 1, "name": "..." } ...],
"contacts":[...]
}
}
|