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.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Confluence Events