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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

235 views 1 6
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