Hi,
I am working on Change management type in Jira
My requirement is
1) When i select field "ABC" which is check box (YES/NO) mandatory .
Question , when i select YES, how the new text field should automatically display to update the text/number and when i select NO , no action is needed
You can use scriptrunner's Behaviour to hide/display 2nd field based on 1st field selection
below snippet may give you some idea
def field = getFieldByName("Field Name to hide/display")
def chkBox = getFieldByName('CheckBox Field Name')
def value = chkBox.getFormValue() as String
if(value == "Yes"){
field.setHidden(false) //Enabling field to enter value
}
else{
field.setHidden(true) //hide field if value is not Yes
}
BR,
Leo
Thanks, So i have to create a field first in jira 1) Field Name to hide/display 2)chekbox
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, if you are not having already.
I meant ABC as a checkbox in my script --> for which you need to setup behavior with given code
field should automatically display to update the text/number ---> is the 2nd field should show up on (ABC == Yes)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As suggested above, Scriptrunner will work. You can also look at Live FIelds functions in Powerscripts.
But if you want to avoid scripting, you can look at Extension for Service Desk
Which will allow some dynamic screen without having to use scripting.
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.