Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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 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

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? 

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
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

74 views 0 3
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