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,552,626
Community Members
 
Community Events
184
Community Groups

Can I use JQL to find out if the current user is the same as a custom field?

Using automation for Jira on SERVER.

We have a custom field called "access approver" which is a user picker. I am trying to make it so if the user who comments the words "approve" on the ticket is the same as the access approver, then the ticket should transition to the Approved state.

Here is what I have now, but the JQL of "access approver" = currentuser() isn't working... any ideas appreciated, thanks! Screen Shot 2021-12-14 at 11.58.41 AM.png

1 answer

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 14, 2021

Hi @Julia 

From what you describe, you want the person who commented for the comparison, correct?  If so, please check with {{initiator}} for the person who triggered the rule.

Kind regards,
Bill

Where would I do this in the rule? In the advanced fields area? 

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 15, 2021

In your compare, please replace currentUser() with {{initiator}}

currentUser() is a JQL function which works from the UI when I logged in user runs a query/dashboard.  And {{initiator}} is the person user who performed the action that triggered the rule.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events