I created an Insight field and am trying to filter only the current user's equipment in the field. When I try "User = currentUser()", nothing comes up. currentUser doesn't even autofill or show up as a suggestion. Only when I add something to the object like "System.User = currentUser()". But I still get no results.
I verified that the attribute USER is on the object under the specific objectType. What is the correct IQL or configuration to pull the user's own equipment? Thank you in advanced.
If you are trying to do this in a custom field IQL configuration for use in an issue creation, try to use "currentReporter()" instead.
Otherwise, here is an example of the search working for me:
Thank you @PD Sheehan . Can you clarify the red text a little more? I do have the computer in the Object of "System" and the user is in another Object under General. But the computer does have an attribute object that points to the User object. So I am using the following:
objecttype = system and "Primary user".Name = currentUser()
This is still not seeing my own equipment. What am I doing wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Primary User" is that a "User" attribute? Or an "Object Reference" attribute?
The "currentUser()" iql function returns a "jira user entity", so you can only compare that against a "Jira user" attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Primary User is an attribute on the device with an attribute object of User, which appears to be a reference
and here are the attributes for the "User" Object:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't see a "User" Attribute there.
This is what a User attribute looks like:
You can't use the currentUser() function against a Default/Text attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.