I'm looking for a way to count the number of assets in an Asset Object reference custom field. Since this is to be used in a Jira issue gadget in Confluence, it needs to be available via JQL.
I have an assets custom field "Affects Platform" and I need to be able to query for all issues that have at least 2 objects in that field. Something like the snippet below but of course this finds issues with any number of objects in the field.
"Affects Platform" in aqlFunction("objecttype = Platform")