Is there a way to enforce on transition that a custom text field must contain a value, unless a radiobutton has a certain option selected?
The idea with the radiobutton is to provide an easy way to filter out issues where the text field is irrelevant. One could argue that an empty field could mean that the issue should be excluded by the filter, but that would make it impossible to determine if the field is left blank intentionally or by accident.
Edit: changed the field type from checkbox to radiobutton.
Welcome to the community!
In this case, you can use the Field required validator on the respective transition.
Add the checkbox field on the workflow transition screen and associate the screen with this workflow transition, So while transitioning issue it will validate and enforce the user to fill the box or value to that respective field.
Hi @Yogesh Mude
Thank you for your input. I am a bit uncertain on how you mean I should configure the validator. Won't it require that all the listed fields have values?
On another note. While filtering issues I noticed that I couldn't match on issues where the checkbox is not set (it being a custom field of the type multiple checkboxes), so I'll be using a radio button with the values "Yes" and "No" instead.
The modified use case is as follows:
if the "Yes" option is selected for the radiobutton, then don't require a value in textfield B, else validate that a value has been entered in textfield B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using Field required validator you can make the single or multiple fields mandatory on transition screen, so while configuring you need to select that particular field which you want to make the required.
if the "Yes" option is selected for the radiobutton, then don't require a value in textfield B, else validate that a value has been entered in textfield B.
In the above case, you need to use the third party plugins to achieve this like Script runner for Jira cloud or Automation Lite for Jira cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.