I'd like to restrict a transition in a workflow if it has part of a fix version's name. The fix versions on which I want the workflow to restrict the transition include a year, e.g. 2026, 2027, 2028. The first part of the jira expression below is what I'm using, but the wildcard (or something else) isn't working to restrict the transition. As the below is written, Jira is still allowing the transition on the 3 work item types as long as the No-Deployment-Needed fix version is on it, and it isn't restricting the transition if a 2026.06.14 (for example) fix version IS on it. Please advise...
(issue.fixVersions == null || !["2026*", "2027*", "2028*", "2029*", "2030*", "2031*", "2032*", "2033*", "2034*", "2035*", "2036*"].some(item => issue.fixVersions.map(item => item.name).includes(item)))
&& (issue.fixVersions != null
&& issue.fixVersions.map(item => item.name).includes("No-Deployment-Needed"))
&& (["Story", "Escaped Defect", "Dependency"].includes(issue.issueType.name))
|| (!["Story", "Escaped Defect", "Dependency"].includes(issue.issueType.name))