For any Jira that is blocked by another team's Jira , we are using the haslink function and if the linked JIra is "is blocked by" then based on the status of the blocker Jira we would like to show our Jira to be as BLOCKED.
So if the blocker Jira is in Open, In progress , in review etc state then it is still BLOCKING but once the blocking Jira has been CLOSED or RESOVLED then the blocker is considered as not a blocker however team doesn't want to just remove the issuelink as it will be used for references.
something like this :
project = "PXYZ" AND (issueFunction in hasLinks("is blocked by") AND issuelinkstatus not in (Closed, Resolved))