Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×I am new here, and I am on Jira Cloud. I have a custom field that is required right now that is a multiple choice ( yes or no ) field. It is required upon creation of the issue. I want a second custom field to be required if the first field is selected to Yes. for example. If the first field is selected " Yes " then automatically the second field is required and the user MUST select options from the drop down menu on that second field. I have researched this a bit, and am getting conflicting answers. Some say yes, others say this is only possible on Jira server. I do have Jira Cloud as i mentioned before, and i also have ScriptRunner installed as well. Please let me know the options when you can, thank you.
Hi Michael - Welcome to the Atlassian Community!
There are only a couple of ways to do this as far as I know. One is using the ScriptRunner Behaviours app. The other is to create a ProForma form (JSM or Advanced Forms under JWM). You place the second field in a Conditional section based on the value of the first field, and then mark the second one Required.
Do you have any examples of code used to do this in ScriptRunner Behaviors. Again im fairly new at doing this, and am trying to get more familiar with Groovy language and am trying to find some example codes i can look at to understand more context and how tow rite this language. Thank you so much!
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.