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

0 votes

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 Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

302 views 0 1
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