Group of customers allow only create Bug type Issue not New future,Task Type etc..

Suresh August 17, 2011

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.

2 answers

1 accepted

0 votes
Answer accepted
MattS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 18, 2011
0 votes
MattS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 17, 2011

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.

Suresh August 18, 2011

How we can the security levels and their groups in the validator class

how to do that could you please explain more!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events