Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Bill Parlock 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

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 Leaders.
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 August 20, 2020

Thank you for your explanation.

Shamim 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.

Suggest an answer

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

Atlassian Community Events