JQL filter: compare field mask "departments1" with departement asset from current User

Mai-Katharina Ngo November 26, 2024

Hello!

I want to add a jql quick filter on jira where it reads one field on the issue mask "departments1" and compares it with the attribute department of the asset object of the current user.

Output: 
If you click on the filter it shows all issues where the departments1 is the same as the departments of the current user.

 

I`ve tried some stuff like this but it doesnt work:



 

"Departments1" IN iqlFunction("objectType = 'User' AND 'JiraUser' = currentUser()")

"Deparments1" IN iqlFunction('objectType = "JiraUser" AND "JiraUser" = currentUser()')

"Departments1" IN iqlFunction("\"Department\" = \"JiraUser = currentUser()\"")

"Departments1" IN iqlFunction("\"Department\" = ") AND inboundReferences(JiraUser = currentUser())")

 

 

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 26, 2024

Hi @Mai-Katharina Ngo 

Welcome to the community.

Is you user object in assets linked to your Jira user, this is required.

Then you should be able to use, example:

Department1 in iqlFunction("objecttype = User and Name = currentUser()")

Mai-Katharina Ngo November 26, 2024

Hello!

Thank you for your answser. I tried your example out but it also doesnt work sadly.
The object is connected with me..

image.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events