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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,457,751
Community Members
 
Community Events
176
Community Groups

Using "was" in JQL with assignee

I am attempting to use the following JQL: "assignee = currentUser() OR assignee was currentUser()".

The equals currentUser works fine; the "was" currentUser gives me an error stating: A value provided by the function 'currentUser' is invalid for the field 'assignee'.

A member of my team has no problem using the JQL and receives the information without an error.  Is there an addin I need for this JQL?

 

1 answer

0 votes

If it works for a colleague in the same system, but not you, then there's probably a difference in your permissions, or what you are selecting.

Does it work with "or assignee was <mark_entrekin>" first (your login obviously, not your name)?  Does it work with other people's names?  Finally, do you have the right to browse users?

Thanks for the quick reply Nic.

I can type in "assignee = xxx", or "is empty" or "in (xxx)" or others and it works fine.

Each of the options =, is..., in... or other options shows me the next possible entry (user, empty...) to continue or complete the statement/JQL

But,  when I use or type in was: "assignee was currentUser" or assignee was in (currentUser))), I receive the error message stating invalid field for the field assignee.

 

sprint in (openSprints()) and (assignee = currentUser() or assignee was in (currentUser()))

 

If I enter:

sprint in (openSprints()) and (assignee = currentUser() or assignee was (currentUser()))

or 

sprint in (openSprints()) and (assignee = currentUser() or assignee was currentUser())

 

I receive the error message "Operator 'was' does not support the list value '(currentUser)))' for field 'assignee'"

but the statement works for another person on the team.  Same project/board.

 

If it is permissions, what permission would break it down to a coding level and/or options used?

Thanks again.

I have attempted to use the "was" and "was in" syntax but continue to receive the same error.

I am an administrator but are there other permissions that I also need set?

Was error in JQL.png

JQL using "assignee was..." that works for another team member:

Was error working in JQL.png

Ah, I see, sorry, no, the "was" only supports named accounts for assignee, 

Hi Nic, thanks for your response but the second example above shows it working?  Can you help on when it does work and when it does not work?

Thanks again.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events