Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,318
Community Members
 
Community Events
165
Community Groups

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

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

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.

Thank you for your explanation.

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
Community showcase
Published in Jira Service Management

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

50 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you