Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I search myself with JQL? (Resolved)

Eric.LA_Chen October 16, 2019

Hi I want build a Filter, but I still failure .....

 

Filter's JQL:
project = JSD AND Approvals = approver("User name") ORDER BY Rank ASC

I want to change "User name" to "current login user name" .

I only build a one filter for everyone.

 

What JQL value can use?

Thanks!

1 answer

1 accepted

1 vote
Answer accepted
Ollie Guan
Community Champion
October 16, 2019

Hi @Eric.LA_Chen ,

You can use 'currentuser()' to query the current logged in user using JQL.,for example:

reporter = currentuser()

But i don't konw what does you mean by Approvals here, Is this a custom field?

Eric.LA_Chen October 16, 2019

Thanks for reply, 

But i don't konw what does you mean by Approvals here, Is this a custom field?

Yes, it is.

 

I have try to set like

"project = JSD AND Approvals = approver(currentuser()) ORDER BY Rank ASC"

but it fail :(

 

It has another way to achieve?

Ollie Guan
Community Champion
October 16, 2019

‘Custom field’ = currentUser()

Eric.LA_Chen October 16, 2019

DONE!
I use another function "Approvals = MyApproval()" and it search successful!

 

Thanks a lot!!!

Like Ollie Guan likes this
Like Eric.LA_Chen likes this

Suggest an answer

Log in or Sign up to answer