Funny, but can't figure it out why in query when used custom field name works (A), but when used customfield id (B) does not?
A) issuefunction in portfolioChildrenOf("project = IO and Architecture_Status = 'Approved'") and issuetype = Epic
issuefunction in portfolioChildrenOf("project = IO and "customfield_15402" = 'Approved'") and issuetype = Epic