how to restrict issue cloning per project in jira??

i've already set up permissions to only allow issue linking, which brings "is a cloner of / is cloned by" to developers role

so far so good.

the issue can still be cloned just by selecting "Clone" from the More Actions tab

this is really annoying cause some users here are way too lazy to create a new issue from scratch...they simply clone a resolved one...

8 answers

1 accepted

0 votes
Accepted answer

You can't disable just "cloning" by workflow properties because there is no separate permission for cloning. It looks for create permission.

You can't do it on a project by project basis unless you do some coding. i.e. add a condition to the respective web-item in system-issueoperations-plugin.xml.

Or maybe disable the system plugin and define an isue operation in your plugin along with the condition. You can make use of existing classes and jsp files.

hmm well.

so what is the best approach to restrict "Clone" from "More Actions" or can it be removed from there?

nice...i just disabled "View Issue Ops Bar Clone Link"

from system issue operations...

thats enough.

Thanks Jobin

Hi Faysal,

Can you please give detailed steps on to disable View Issue Ops Bar Clone Link

Hi Bob,

Thanks for quick reply. Looks like onDemand we can't disable clone function.

That is an admin function, so only Atlassian can touch that for OnDemand.

Hi Bob,

Can we disable this on local jira instance and without having plugin

Yes, on a download instance, the administrator can disable the shipped clone operation following the instructions.You only need the plugin if you want to replace it with clone operations can be restricted or customized on a project by project basis if that is your need.

Bob, can you please point to instructions

How to use clone properties for customization and there is a specific exampe of configuration for a project specific restriction

I have tried this in workflow step's properties -->

jira.permission.create.clone = denied

Its working for me without restricting sub-task creation (took ref from here)

Dhananjay Kale,

I want to deny cloning only in a specific project in jira. Is this possible in this way?

Yes. But need to make sure that workflow is not shared between the projects.

Yes- different workflow!

where should I define this sentence?

(jira.permission.create.clone = denied)

and where should I add the project's name?

where can I find the workflow steps properties?

Edit the workflow, look at the status on the workflow, there is a properties panel

great- found it!

and should I put the "(jira.permission.create.clone = denied)"

in the Property key or in the Value key?

Both.  We use the = as a separator here because it's quicker than a screen shot and just as easy to explain.  The string on the left is the property, the one on the right, the value.

thank you very very much!

I will try it!

Yes, DJ it worked for me too.

i tried setting some properties per issue state...

such as "jira.permission.clone=false" or "jira.permission.link=false"

no effect...

what am i missing?

Sounds like you have an answer for your situation. For others, the Clone Plus Plugin for JIRA has a number of customization options which would allow restricting cloning to specific projects. More over, providing project specific clone options to fit better user needs. More info: How to customize

No need for more expensive addons. Just adding the property jira.permission.create.clone.denied to every status in the workflow seems to do the trick just fine.

 

David Skreiner

I want to deny cloning only in a specific project in jira. Is this possible in this way?

Hello @roniz,

Just add the properties jira.permission.create.clone = denied to the workflow/s of the specific project. Make sure the workflow is not share by other project. It worked for me.

Does this still work ? I've try it on version 7.7, i've put the parameter everywhere on my workflow and it doesn't work ...

 

I've the same workflow as this ticket and the work arround doesn't work ...

https://jira.atlassian.com/browse/JRASERVER-62200

Using properties can we restrict the Clone based on Roles. Say only admin should be able to clone and not others. 

DJ`s solution working... jira.permission.create.clone = denied

We have similar issues with cloning In a couple of projects.  Users clone an issue, but then do not have edit permissions to modify key details.  We have good reasons for not granting edit permissions in those projects and we expect our users to "remember" that they should not clone in those projects.

I understand that clone would not be permitted if we remove the "create issues" permission, but we do want our users to be able to create new issues in those projects.

Would it be possible to make the "clone" action depend on both "create issues" and "edit issues" permissions?  

That would solve most of our problem with regards to cloning.

 

Thank you,

Aaron

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira

How you can achieve compact and easy-to-maintain workflows in your JIRA( Server)

This approach requires you to have the JIRA administrative rights. The main aim of this article is to help you achieve an organized, easy-to-maintain workflows in your JIRA instance thereby, reducin...

240 views 0 0
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