Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi team we have a few projects with workflows shared by multipal issue types. Is it possible to add a validator to a workflow to block transitions based on issue type using Jira Misc Workflow Extensions (JMWE)?
* Example if issue is a ( Story ) && ( Components ) field is empty block transition.
Regards,
-E
Sure, you can use a Field Required (JMWE app) Validator, select the Components field, check "Conditional Validation", and use this as the Condition:
issue.issueType.name == "Story"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you set a condition by project? for example this is what I'm trying, but it isn't working: issue.get("Project")?.name == ["Team Explore"]
ejs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Eric Sebian , why use square brackets?
The correct syntax is:
issue.get("Project")?.name == "Team Explore"
as shown on the Issue Fields help tab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @David Fischer ,
How can I write commands for multiple projects? example; component is required but
issue.get("Project")?.key == "FBL"
issue.get("Project")?.key == "FAA"
issue.get("Project")?.key == "FPCRF"
issue.get("Project")?.key == "FAI"
issue.get("Project")?.key == "FCB"
issue.get("Project")?.key == "FCSRT"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can do something like:
issue.get("project").key in ["FBL","FAA","FPCRF"]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.