Advanced filtering
There is also another functionality that was introduced: "Convert filter to query string". I think it's also worth mentioning it under this paragraph.
We introduced a dedicated request/response pair event for converting filters to query strings:
octane_convert_filter_to_query:
---Direction: Sent from the external action to the client.
---Purpose:
Requests active filter with filter_id to be converted to query strings, associated within the widget identified by panel_id.
---Example payload:
js
{
event_name: 'octane_convert_filter_to_query',
workspace: this.params.workspace,
shared_space: this.params.shared_space,
data: {
panel_id: this.params.panel_id,
filter_id: filterId,
filter: filter,
entity_type: 'work_item'
}
}
and:
octane_filter_converted_to_query:
---Direction:
Sent from the client to the external action as a response to the octane_convert_filter_to_query.
---Purpose:
Provides the filter with filter_id converted to query strings, associated within the widget identified by panel_id.
---Example payload:
js
{
data: {
panel_id: panelId,
filter_id: filterId,
query: query
}
}