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?
Welcome to the community.
This is not possible ootb, this will require 3rd party apps, like:
Apps that can extend workflow functionality.
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:
!!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! 😉
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.