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

How do I search myself with JQL? (Resolved) Edited

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 vote

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?

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?

‘Custom field’ = currentUser()

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

 

Thanks a lot!!!

Like Ollie Guan {Ctrip} likes this
Like Eric.LA_Chen likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

938 views 8 25
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