Forums

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

I want to make a field required based on the the selection in another field using JMWE

Jessica Silvani January 27, 2023

For a bug ticket, I have a Source of bug custom field with 10 options. If the source of is a regression, I want to require the assignee to add complete another field before closing the bug. I have installed JMWE and successfully marked a few fields required but hitting a wall on the aforementioned workflow.  

1 answer

1 accepted

0 votes
Answer accepted
David Fischer
Community Champion
January 27, 2023

Hi @Jessica Silvani ,

for that, you need to use a Field Required (JMWE app) Validator, select the required field, and add a "Conditional Validation" script like:

issue.customfield_12345.value == "Regression"

where customfield_12345 is the custom field ID of field Source. This easiest way to insert the right field ID is to use the "Issue Fields" help tab below the editor.

Jessica Silvani January 27, 2023

Thank you so much for your quick reply! I tried what you have here, but the test isn't working; am I missing something?

regression validator.png

David Fischer
Community Champion
January 27, 2023

I believe you confused the two fields. The required field is not "Source of bug" but the other field (the one that should not be empty). And in the Condition script, make sure you refer to the "Source of bug" field. 

Jessica Silvani January 27, 2023

That did it!!! You are absolutely wonderful; thank you so much!!

Suggest an answer

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

Atlassian Community Events