Hi All,
I have Custom Filed type Select List(Single Choice) in that I have added options
A,B,C,D and Others. so here when i choose the option "Other" need to populate a Text field box to enter manually information.
Select List(Single Choice) customfiesd ID-10012
Text Fied CustomField Id-10026
Can you please give any Suggestions.
Thanks,
Phani
Hi All ,
I have Resolved this issue my self by using script runner plugin Behavior
here is the thing what to do admin settings----->Add-ons--->Behaviors---->Add a Behavior give an name----->Click On Fields--> in that select workflow of project in "Guide workflow" option------>In a fields tab "Add Field" Select List custom field------>after that click on "Add server-side script". here is the script that you have to use
def otherFaveField = getFieldByName("Name Of TextField") //Give a text field custom field name that you have created
def faveFruitField = getFieldById(getFieldChanged())
def selectedOption = faveFruitField.getValue() as String
def isOtherSelected = selectedOption == "Other" //instead of Other You can give another option that you want
otherFaveField.setHidden(! isOtherSelected)
otherFaveField.setRequired(isOtherSelected)
and then Save it ---->go back to Behaviors--->you will see "Add Mapping" on the side of "Fields" ------>click it and map to "Choose projects(required)" and "Choose issue type" click on Add Mapping
thats it its all got to go
when creating/Editing an ticket in the project while creating when you choosing the Select List custom field selecting the "Other" option it will automatically display the Text Field that you have created and if select another option it wont display the text field
Thanks,
Phani
Hello,
You would need a plugin for it.
For example you could use the Power Scripts plugin:
You could create a Live Fields SIL script like this:
if(argv["customfield_10100"] == "Others" && argv["customfield_11100"] == "") {
lfShowFieldMessage("customfield_11100", "the Text Field is required", "WARNING");
lfDisable("editSubmit");
} else {
lfHideFieldMessage("customfield_11100");
lfEnable("editSubmit");
}
In this script:
customfield_10100 is the id of the Single Select field
customfield_11100 is the id of the Text field box.
You could find more info about Live Fields here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alexey Matveev thanks for your suggestion i will install that plugin and i will try and is there any possible to do with Script runner plugin ????
or any other way to do without the add-on.
Thanks,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can do it with ScriptRunner, but I do not have a script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Team,
Can anybody tell me how to resolve this ???
Thanks,
Phani
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.