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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.