*** This version of Confluence is for testing only and contains a copy of content from June 29th 2026. No changes will be preserved. ***
...
ON jsonb_extract_path_text (cf.jsonb,'id')::UUID = cft.id
------ I'm joining to the custom_fields__t table to show has the custom fields id, the ref_id and the custom_fields name from this table (joining to this table is not necessary, it's just a conveniencerequired – I just wanted to capture those fields in the results)
ORDER BY name, jsonb_extract_path_text (values.jsonb,'id'), jsonb_extract_path_text (values.jsonb,'value')
...