I have a cascading-select custom list named "Team" and I want to set each of the Team list values curing a create issue. I can't seem to figure out how to set the primary list and secondary list.
Running JIRA 6.2 and using Groovy
The following code does not seem to work:
Option ctOption = optionsManager.getOptions(cfTeam.getRelevantConfig(issue)).getOptionForValue("TeamA", null);
Option ctSubOption = optionsManager.getOptions(cfTeam.getRelevantConfig(issue)).getOptionForValue("SubTeam A", null);
issue.setCustomFieldValue(cfTeam, [ctOption, ctSubOption])
Note, when printing debug statements, ctOption finds "Team A", but ctSubOption does not find "SubTeam A" and cfTeam does not get updated.
Thanks for any help!
Jay