Workflow error while using a filter option

Hi,

We have created a workflow to raise a jira ticket when ever a Access request is approved which is coming from AWS Dev source. So we used the first step as the Trigger “Access Request Decision”. I need to add a filter so that the workflow triggers only for the application AWS Dev and not for all Access requests. I have used the JSONPath

$.trigger.requestedItemsStatus[?(@.clientMetadata.applicationName == ‘AWS Dev’)] which is showing error

Can you please suggest the correct JSONPath for filtering. This is a bit high priority.

sample input given while testing-

{
“accessRequestId”: “4b4d982dddff4267ab12f0f1e72b5a6d”,
“requestedItemsStatus”: [
{
“id”: “2c91808b6ef1d43e016efba0ce470904”,
“name”: “Engineering Access”,
“description”: “Engineering Access”,
“type”: “ACCESS_PROFILE”,
“operation”: “Add”,
“clientMetadata”: {
“applicationName”: “My application”
},
“approvalInfo”: [
{
“approver”: {
“id”: “2c91808b6ef1d43e016efba0ce470910”,
“name”: “Stephen Austin”,
“type”: “IDENTITY”
},
“approverName”: “Stephen.Austin”,
“approvalDecision”: “APPROVED”,
“approvalComment”: " this is an approval comment"
}
],
“comment”: “requester comments”
}
],
“requestedBy”: {
“id”: “2c91808b6ef1d43e016efba0ce470906”,
“name”: “Adam Admin”,
“type”: “IDENTITY”
},
“requestedFor”: {
“id”: “2c91808b6ef1d43e016efba0ce470909”,
“name”: “Ed Engineer”,
“type”: “IDENTITY”
}
}

I believe this is because your filter expression is using the unicode equivalent of an apostrophe/single quote. You need to use the ASCII version of a single quote, which you can get by manually typing the ' character from your keyboard. I got the same issue as you when copying and pasting your example in my workflow, but it was successful when I replaced the single quotes with the correct ASCII version.

Invalid unicode quotes: $.trigger.requestedItemsStatus[?(@.clientMetadata.applicationName == ‘AWS Dev’)]

Valid ASCII quotes: $.trigger.requestedItemsStatus[?(@.clientMetadata.applicationName == 'AWS Dev')]