Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict transition in workflow based on fix version with wildcard

Stewart_ Emily _ Global D_T
Contributor
May 20, 2026

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))

1 answer

0 votes
Aaron Pavez _ServiceRocket_
Community Champion
May 20, 2026

Hi @Stewart_ Emily _ Global D_T 

Are you running this in JMWE? scriptrunner?

Any other third party app?

Can you send us screenshot of the automation(Flow) you have so far?

Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events