Hi All,
I have agroup of customers.How to restrict them to only creating bug type issue.
I have user fallowing code.when ever the user login he is not there in Group.Message is coming i have used tookit
vmmessage filed edit.But create button in create screen is not disabling.How to this
#if ($authcontext.user.inGroup('Cutomer-Group'))
##do nothing
#else
You do not have the rights to raise issues of this type - please contact the administrators if you think this may be wrong
<script language="JavaScript">
function disableCreate()
{
alert("Hello");
var inps = document.getElementsByTagName('INPUT');
for (i = 0; i < inps.length; i++)
{
if (inps.type == 'submit')
{
inps.style.display = 'none';
}
}
}
</script>
#end
Thanks
suresh.
I think you can do this with a validator on the Create transition. There is an open JIRA issue requesting this functionality more explicitly somewhere.
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.