Can I have required field based on condition? I would like to have Release notes field required based on the custom field > Target environment. If the target is UAT then released notes required. Thanks!
Hi Jadranka,
Out of the box it is not possible but you can achieve this with following plugin.
Once installed you can use the "field required validator"
Regards
Dave
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Community,
I added two transitions. First transition, If target is UAT then add validator to transition for Release notes required. Add condition to show if target is UAT. Add second transition, add condition to show if target is not UAT, no validators for the second transition. At any one time only 1 transition will be available to the user. This is prone to breakage if any changes to the custom fields. The transition names will have to be different ("transition", "transition "), I just added a space. To the end user it will look the same. Not very neat though, and prone to breakage. You would also have to consider empty values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Jadranka Perc ,
A simple 'Field required' validator might not be sufficient for your use case. You should look for a workflow app capable of interpreting Jira expressions (see https://marketplace.atlassian.com/search?category=Workflow&product=jira) and an expression like the following with 12345 being your target and 67890 your release notes custom field:
issue.customfield_12345 != "UAT" || issue.customfield_67890 != null
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.
You're welcome, @Jadranka Perc.
If this solution is working for you, please make sure to mark the answer as correct. Thank 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.