Hi -
I am working on a java Script when I have 2 fields one a select-list and one multiselect list and both the lists have multiple values/options set
I need a java script that will help with the follwoing
based on the value i select from customfield_selectlist. I should be displaying only values that are related to this selection in the customfield_multiselect
selectlist values = apple, orange, grapes
multiselect values = apple_1, orange_1, grapes_1, apple_2, orange_2 and grapes_2
if I select apple in select list. The form should only show apple_1, apple_2 and apple_3 ....
can someone help me with the code.
thanks a lot in advance
Gopi
agreeing to what Vikrant and Fabian suggested I wanted to share that some stale Java Script adaptions in the past lead to an incident for a Jira instance we were running resulting in a downtime for several hours which in the end caused more expenses (by people not being able to work) than any App could cause.
So ... in the end it is you who has to decide but here my +1 for an App (whichever you might prefer, at least you can test all of them for some days - for free).
Regards,
Daniel
Hi @gopinath_velayudhan You can do this with the help of Script Runner behaviour.
If you have script runner plugin installed then only you can apply Behaviour on a select list field. Do you have script runner ?
Thanks
V.Y
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Yadav - Unfortunately we do not have Scriptrunner and wont be an option right now.
is custom script that i can add to description that will work.
Thanks
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@gopinath_velayudhan Java script is wrong way of doing this. It often doesn't work what you want it to do.
Inject Javascript modify JIRA behaviour in very strange way. There is no way to trace that from configuration point of view. More over you can't see added JavaScript code in Debugger, which makes troubleshooting very hard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately i wont be able to use any Paid plugin. Do you know of any other plugins that can help which are cheaper or free :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For your scenario I would use the power scripts plugin with the following script: https://confluence.cprime.io/display/JJUPIN/lfAllowSelectOptions
Here are instructions on how Live Fields work in jira: https://confluence.cprime.io/display/JJUPIN/How+Live+Fields+work
They provide excellent support, so feel free to contact them if you get stuck.
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.