Forums

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

Making a validator conditional

Dirk Fruitema
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!
March 20, 2025

I have added a custom field to my stories, with a list of options. If 4 out of 5 options are filled in, then I would like the person changing the status of the ticket to Ready for Release to also fill in the Time Spent field. I can add a validator for the Time Spent field, and separately a conditional for the custom field, but I cannot say that the Time Spent field should be filled in, ONLY IF, certain options are selected for the custom field

Is there a way to link the validator with the conditional?

3 answers

2 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2025

Hi @Dirk Fruitema 

Welcome to the community.

This is not possible ootb, this will require 3rd party apps, like:

  • JMWE
  • JWT
  • JSU
  • etc..

Apps that can extend workflow functionality.

0 votes
Aleksandra Cieslak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 20, 2025

Hi @Dirk Fruitema

I’m a Product Manager at Deviniti, responsible for the Dynamic Forms for Jira app. Our solution allows you to configure conditional logic for specific fields — for example, making a field required or showing it only when certain conditions are met.

We currently support the Create screen, Issue View, and Transition screen.

While the app doesn't support the Time Spent field at this time, I believe our solution may still be a good fit for your needs. I've added your request to our product backlog as a potential new feature for future development.

If you have any questions or would like to discuss your requirements in more detail, feel free to book a demo with us!

 

0 votes
Charlotte Santos -Appfire-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2025

Hi @Dirk Fruitema 

I’m Charlotte, a support engineer at Appfire and I’m here to help you.

Unfortunately, natively, you’ll not be able to do it.

Allow me to suggest solving this issue by using Jira Misc Workflow Extensions (JMWE), you can use the Field Required Validator (JMWE app), that allows you to make a field required but with optional validation.

For you specific case, I recommend doing it like this:

Screenshot 2025-03-20 at 17.14.14.png

 

!!issue.customfield_10496 &&
issue.customfield_10496.length == 4 &&
issue.customfield_10496.some(it => it.value == "Option A") &&
issue.customfield_10496.some(it => it.value == "Option B") &&
issue.customfield_10496.some(it => it.value == "Option C") &&
issue.customfield_10496.some(it => it.value == "Option D")

You just need to change some specifications like the custom field ID, and the options, according to your instance and need.

I also recommend that you add the field Log Work to a Transition Screen, so that the Time Spent is validated when required during the transition.

Please contact our support if you have any other questions about this validator, or JMWE in general.

We’ll be happy to help you! 😉

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