Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Making one custom field Mandatory Based on another custom field input

michael seward January 27, 2023

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.

1 answer

1 vote
John Funk
Community Champion
January 27, 2023

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. 

michael seward January 30, 2023

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!

John Funk
Community Champion
January 30, 2023

Sorry, but no that's not a tool that I use. You could contact their support. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events