I have 2 custom fields called "Code Review Approvers" and Code Review Approved By". When a workflow reached the "Code Review" status, a few users are selected to be the "Code Review Approvers". As a user approves, their name gets populated in the "Code Review Approved By" field.
I want to create a filter where the currentuser() is in "Code Review Approvers" but not in "COde Review Approved By", which means they have a pending approval.
The JQL I came up with was:
"Code Review Approvers" = currentUser() and "Code Review Approved By" != currentUser().
This, however, is not returning any issues. What am I doing wrong here?