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: 

Can currentUser() and memberOf() functions be used together in JQL?

Bill Parlock
Contributor
August 20, 2020

I have some service desk issues with the label set to 'Development'. My goal is to only allow users in the development group to see an issue with the label of 'Development'. I was trying to add   ' currentUser() IN memberOf( development_group )'  to the JQL for all open tickets.  I have not been successful so far.

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Florian
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 Champions.
August 20, 2020

currentUser() can only be used on the right side if equal comparison (=).

membersOf() can only be used on the right side of IN.

So you can try something like assignee in membersOf("myDepartment").

Never the less you wrote "My goal is to only allow users in the development group to see an issue". This is more a thing for permissions and not for JQL. Everyone can write their own filter. Better use a "permission scheme" on project level or an "issue security scheme" on issue level.

Bill Parlock
Contributor
August 20, 2020

Thank you for your explanation.

Shamim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 19, 2021

A good way to visualize how filters works:

Think of it like a database and you're basically querying the "issues" table. Do you think, this table has a "currentUser" column? No. Does it have membersOf column? No. Does it have assignee column? Yes.

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events