Hi,
I'm facing issue while replicating one Jira automation in Data Center instance which is working fine in Cloud.
Here lookupIssues function is not returning correct value instead giving 0 count as an output. Please refer to below screenshot.


Rule is to get distinct count of "Company" custom field and assign that count to another numbered custom field "Company Distinct Count".
Also let me know does DC instance Jira automation rules support fetching distinct count for any customField?