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.
https://marketplace.atlassian.com/apps/292/jira-misc-workflow-extensions-jmwe?hosting=cloud&tab=overview
Once installed you can use the "field required validator"
Regards
Dave
Thank you Dave! will try it
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
Thank you Thorsten!
You're welcome, @Jadranka Perc.
If this solution is working for you, please make sure to mark the answer as correct. Thank you!
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.
It looks like you're new here. Sign in or register to get started.