Hello,
I'm trying to make a field required before allowing the issue to transition to "approved." However, I need this to only apply to issues with specific values in one of the custom fields in the issue.
So in my case, I have an issue type that has custom fields "list of Instructions" and "Product" with choices A,B, and C. I want a validator that will require the custom field "List of Instructions" to be mandatory for the issue to transition, but only for issues where "A" or "B" is selected for "Product" field.
Any ideas how to go about with this?
You can absolutely do this via Conditions on the transition! This will ensure that the transition is not visible unless your criteria is met. For this your criteria is:
See below screenshots of how this would look (I've used Components for Product, and Environment for List of instructions).
Getting the Option ID: You can find this by going to the custom field config, finding your field then clicking the ... and opening Contexts and Default Value, then editing on the options, then edit on the specific option. In the URL you'll see ?fieldConfigId=10107 - the 5 digit number is the ID.
Hi @Jovin
Thank you for your response. Just to clarify, if I use these conditions, The issue can transition fine(without conditions) for choice C in Product custom field?
Simply put, i only need this condition to apply for A nd B, not C. thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yup - in the grouped condition if you add one for each of the 3 all will be required, if you only add 2 of them, then only those two will be required!
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.