Hi everyone!
I have 3 types of Assets objects:
Object1. Labels:
E1, E2, E3, E4, E5, E6, E7, E8, E9, E10
Object2. Group, with an attribute of type Labels:
Group A -> E1, E2, E3
Group B -> E4, E5, E6
Object3. User, with an attribute of type Groups (multivalue) and an attribute of type Labels (multivalue):
User 1:
When I create a new User object, the labels field should list ONLY the labels that are associated with the selected groups, that is, if the user selects Group A, only the labels E1, E2, and E3 should be listed. If the user also selects Group B, the labels should be only E1...E6.
The AQL that I use in the Labels attribute of the User object does not get anything and the system generates an error, how can I filter the labels?
Regards
Hi,
You should be able to use the following AQL in the "Filter objects AQL" setting of the Labels Attribute.
object HAVING inboundReferences(Name IN (${Groups}))
Best way to get the correct AQL is to go to the Labels object type and write the correct AQL using a fixed Group Name. For example object HAVING inboundReferences(Name IN ("Group A")). Then exchange the fixed Name with a placeholder ${Groups}
Hi, thanks for the answer.
Indeed I am using that AQL, I forgot to indicate it in the question.
That AQL works when I select a single Group, if I select two groups, the query doesn't work
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're right - this is apparantly a bug. I made a bug report to Atlassian on this - let's see if they solve it anytime soon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
New improved answer :)
Placeholders for multiple objects are not really intuitive to understand (and you don't get any syntax help either)
This AQL should work:
object HAVING inboundReferences(Name IN (${LabelGroups${0}}))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.