how to modify this code to add restrictions to a projectrole

My goal is to remove the "Clone" Link from More Actions

i did it by adding this code as a value into a Message Custom Field (for view) wich i assigned to the Screen from the specific project

<script type="text/javascript">
{
cloneMenuItem = document.getElementById('clone-issue');

if (cloneMenuItem)
{ cloneMenuItem.parentNode.style.display = 'none'; }

}
</script>

works nice...now i want to extend this by adding a condition that restricts clone-issue only to users in projectrole i.e. Developers (id 10001) of a project.

how to get it in that code?

Thanks for any suggestions

2 answers

1 accepted

no this can't be done with workflow properties cause this operation is not based on issue linking.

see response from atlassian support

Clone issue in JIRA is not based on the permission to issue linking. There is a workaround that mentioned in this link to remove/restrict the Clone button for specific user or specific screen in JIRA

no problem... :)

Got it. I mis understood.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Agile

How Davin Studer gets Confluence to do everything he wants it to do...except dishes

  @Davin Studer holds many interests, including but not limited to health tech and Star Trek. Read on to discover more about Davin, from his favorite Confluence macros to his favorite lit...

169 views 1 8
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