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

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 Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

440 views 8 26
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