Forums

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

JMWE Validator Options

Emanuel Y March 2, 2022 edited

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

3 answers

1 accepted

0 votes
Answer accepted
Emanuel Y March 3, 2022

Awesome! Thanks @David Fischer that did the job. :-)  

1 vote
David Fischer
Community Champion
March 2, 2022

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"

image.png

0 votes
Eric Sebian
Contributor
April 28, 2022

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

David Fischer
Community Champion
April 28, 2022

@Eric Sebian , why use square brackets?

The correct syntax is:

issue.get("Project")?.name == "Team Explore"

as shown on the Issue Fields help tab.

naim.yilmaz January 3, 2023

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"

David Fischer
Community Champion
January 3, 2023

You can do something like:

issue.get("project").key in ["FBL","FAA","FPCRF"]
Like • naim.yilmaz likes this
naim.yilmaz January 3, 2023

yes, it works. Thank you very much.

Apoorva Bharambe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 29, 2025 edited

Hi David

Does this work for cloud version of JMWE too?

issue.issueType.name == "Story"
David Fischer
Community Champion
July 29, 2025

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, compass learning path, get the most out of compass, internal developer platform, devex learning path, atlassian learning, transparent architecture, component catalog, improve dev experience, compass platform training

Elevate your skills and enroll in the Compass learning path today! 💻

This learning path offers short, self-paced courses to help software teams systematically manage components and services. Compass provides a unified interface for tracking distributed software architecture and team collaboration.

Learn more!
AUG Leaders

Atlassian Community Events