Approval search fields

Approval writes 13 fields into Confluence's own search index. Once a page has been indexed you can filter and sort by them in Capable Search, and use them in ordinary Confluence CQL.

The Approval panel in a search side panel, under a Capabilities heading, showing a purple Pending bar, counts of 0 of 1 approved and 0 of 1 rejected, and Jack Graves listed under Pending with a Respon
The approval panel on a result carries the same state the fields record, including the current status and who has yet to respond.

#The fields

Field

What it holds

<hash>_capable_approval_status

Current approval state of the page. Value must be a BARE number. Example: `<hash>_capable_approval_status = 0`. Also the default sort field for the built-in 'Pending approvals' and 'Your approvals' searches.

<hash>_capable_approval_created_by

Account id of the person who raised the approval request. Example: `<hash>_capable_approval_created_by = currentUser()`, this is the 'Your approvals' query.

<hash>_capable_approval_pending

Account ids of approvers who have not yet responded. `= currentUser()` is the 'waiting on me' query.

<hash>_capable_approval_approved

Account ids of users who approved.

<hash>_capable_approval_rejected

Account ids of users who rejected.

<hash>_capable_approval_commented

Account ids of users who left a comment on the approval without approving or rejecting.

<hash>_capable_approval_latest_version_by

Account id of whoever created the page version the approval is attached to. This field never appears in the CQL editor's field list, so you cannot search on it eve

<hash>_capable_approval_is_complete

Whether the approval reached a final state. The value is text rather than true or false, and like latest_version_by the field is not offered in autocomplete.

<hash>_capable_approval_created_at

When the approval was raised. Unix MILLISECONDS, bare number. Example: `>= 1735689600000`.

<hash>_capable_approval_completed_at

When the approval reached a final state (approved or rejected). Unix milliseconds.

<hash>_capable_approval_last_response_at

Most recent approver response on the approval. Unix milliseconds. Good for finding stalled approvals.

<hash>_capable_approval_expires_at

The instant the approval is scheduled to expire. Unix milliseconds. The default operator is `<`, meaning expiring before a date.

<hash>_capable_approval_expired_at

When the approval actually expired (as opposed to when it was due to). Unix milliseconds.



Indexed, then searchable. In that order.