I am using JIRA 6.2.7 and JJupin 3.
1)How do i get only selected checkbox items from checkbox list in sil script?
"getFieldOptions" function returns all the items.
2)How to get all the names of the required cf fields on the issue screen in SIL script or JJupin?
3)How to make some cf fields as required fields based on selected check box items?
thanks
Community moderators have prevented the ability to post new answers.
Hope this helps!
Thanks for the info. but I tried to get the selected options by using id or name it is not working. I tried on two controls. Here is my code: //set the options lfSet("Test chkList",{ "optOne","OptTwo"});/* I see options are selected on the issue screen*/ string[] selectedOptions = customfield_10123;/*after this line code is not executing I don't see any error*/ //string[] selectedOptions1 = #{Test chkList}; string results; for(string opt in selectedOption) { results +=opt; } lfSet("inputResults", results);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
string[] selectedOptions = customfield_10123; will get you the options saved in the DB for that custom field. If you're using this script as a hook script using Live Fields, you should pass {"customfield_10123"} as the dependent fields in the lfWatch() or lfInstantHook() call. If you're using the script as the initial script, you should consider using a lfInstantHook() to pass the currently selected values of customfield_10123 back to the server. See: http://confluence.kepler-rominfo.com/display/JJUP30/lfInstantHook http://confluence.kepler-rominfo.com/display/JJUP30/lfWatch
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.