Jira Automation for updating fixVersion based on Branch

Hi All, I am trying to figure out how to update Jira tickets with a fixVersion based on the branch the git commit was merged into using Jira Automation. I am having trouble finding documentation on what JQL commands can be used so that I can use a IF{JQL} component. Please link any documentation and/or a JQL that would help me in this situation.

“development[pullrequests].open = 0” as JQL gives me filter results
“development[pullrequests].closed = 0” as JQL does not give me filter results
I am trying to figure out how to do something like " development[pullrequests].branch = currentBranchName