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

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

This widget could not be displayed.
This widget could not be displayed.

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.

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

425 views 3 17
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you