-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Assets - AQL
-
11
-
Minor
-
2
Summary
JQL function currentUser() does not work when used with the Group HAVING AQL clause
Steps to Reproduce
- Create an object with a User type attribute and a Group type attribute
- Assign non-licensed users to an object
- Add the same user to a Jira group and assign the same group as well to the object
- Attempt to use the Filter scope AQL's as follow one by one:
"Owner" = currentUser() AND "Group" HAVING user("currentUser()")
Expected Results
In both cases when the nonlicensed user tries to browse the objects, they get the objects assigned to them via the user attribute Or the group attribute
Actual Results
The objects can be browsed by the user when using the user attribute in Filter scope AQL.
"Owner" = currentUser()
But they can't be browsed when using the group attribute in Filter scope AQL even though the user belongs to the group assigned to the object:
"Group" HAVING user("currentUser()")
It starts to work if you now provide this user with a Jira license.
Workaround
Use the user type attribute if possible with cardinality set to unlimited Or if possible use the placeholders
"Group" HAVING user(${reporter})