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”
}
}