Hi everyone,
I am configuring a Custom Field in Jira Service Management (Data Center) powered by Assets (Insight). I have a simple Object Type with an attribute named GruppiAbilitati.
The Goal: I want to filter the objects in the "Filter Issue Scope" so that the user sees only the objects where the GruppiAbilitati attribute contains a group that the Current Logged-in User belongs to.
Current Status:
If I use the Reporter, this works perfectly:
SQL
"GruppiAbilitati" <span>HAVING</span> <span>user</span>(${reporter})If I try to use the Current User, I get a syntax error:
SQL
"GruppiAbilitati" <span>HAVING</span> <span>user</span>(currentUser())
Error: extraneous input '(' expecting {')', ',', ' '}. It seems the parser does not accept a function inside the user() function.
My Question: What is the correct AQL syntax to check if the Current User is a member of the group(s) listed in the GruppiAbilitati attribute?
I have tried "GruppiAbilitati" IN connectedUserGroups() but I am not sure if this is the correct way to match a "Group" attribute against the user's group list.
Any suggestions for currentUser() group filtering on a direct Group attribute?
Thanks!