I want to show a language field that is a selector of language.
the values of the selector shall change depending of Project or UserGroup ( or whatever )
I am using JIRA 5.1.4
I am using script runner to create a scripted field "language"
question is :
has to be done in Groovy, Java, Javascript or in Velocity ? ( what is better ?)
I am trying to use javascript : (HTML option)
<!-- only a test -->
<script type="text/javascript">
pr = document.getElementById('Project');
alert(pr.value);
</script>
Result it not compiles --- ( error in line 1 )
:::::::::::::::
in " templates " section : can I use a macro ? like this ? ( velocity macro )
## script info
#set($UserGroups=$userAccessor.getGroupNamesForUserName($action.remoteUser.name))
## Participating offices ::::::::::::::::::::::::::
#if ($UserGroups.contains("cyprus-agents") )
$!Greek
#elseif ($UserGroups.contains("denmark-agents") )
$!Danish
#elseif ($UserGroups.contains("ohim-knowledge-administrators") )
$!Spanish
$!English
#else ## :::::::::::::: OHIM :::::
$!Spanish
$!English