The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

NGO
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Marc -Devoteam-
Community Champion
November 26, 2024

Hi @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()")

NGO
Contributor
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

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events