Hi,
I need a custom field to appear only when another custom field has a certain value.
For example:
If "custom_list" is a single select dropdown with possible values 1, 2, 3, 4
I need the user to add a value to "new_field" only when custom_list value is 1
I use Jira Premium. Is there any way to achieve this?
Hi Aitrhira,
I can confirm you could make a field required when option 1 is selected inside a select list field using the Behaviours feature provided by ScriptRunner for Jira Cloud.
We have an example in our Script Library here, which shows how to do this.
Please note that currently, Behaviours only works on Jira Software company-managed projects, as documented here.
I hope this information helps.
Regards,
Kristian
Thanks, I don't have ScriptRunner though.
Is it possible to do the same with conditions or validators in the workflow?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It could be possible with Validators, but you would need an add-on out of the box to provide the ability to validate this, as I do not believe Jira has validators to do this out of the box.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OOTB you can't do that.
You'll need an add-on, such as scriptrunner.
With scriptrunner you can set field behaviours on transition screens (conditionally show/hide/set mandatory).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With Workflow conditions and validations, this is not possible.
Only If you would have a 3rd party marketplace app to extend your workflows with scripts, like JMWE, JSU, or scriptrunner,
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.