How can I prevent deletion of version in JIRA project ?

Is there a way to stop user from deleting the created version in jira project?

3 answers

1 accepted

This widget could not be displayed.

Yes, talking will do but i also wanted to take care if somebody unknowingly deletes the version.

Using versiondeleteevenet to get notification

You'll need to do a spot of coding to catch that event and send an email, but it will be too late - the version will have been deleted, you can't stop them doing it.

Nic,

you are right, the event is fired only after the deletion is done :(

This widget could not be displayed.

You can't. If they are a project admin, then they have the right to maintain versions - add, change and delete.

or else can i hide it.

I have this requirement as i want project manager to edit the version but not to delete them. As one of my major functionality breaks becoz of deletion

You should really talk to him instead of putting workarounds ;)

Nope, you can't hide them either. The answer is to remove ALL rights to maintain versions, or, exactly as Jobin says, work with the user, instead of trying to force them down a route they don't like.

Why is he deleting versions? Why do you need to keep them if he, as a project admin, decides he doesn't want them? Sounds like you need to talk...

hi Nic, I got a question,could you please help?

on the screen of Project-Versions, (for example,project : PRO2)

I want  that only admin or non-admin user can 'archive' some version,

while click the 'archive' link, the request URL is http://localhost:2990/jira/rest/api/2/version/10005,

and the referrer is http://localhost:2990/jira/plugins/servlet/project-config/PRO2/versions.

how to do it ? thank you so much.

You will need to hack the core code in JRA so that it stops allowing it.

Although you say "only admin or non-admin user can", which works out as "all users".  The current system only allows project admins to do it.

This widget could not be displayed.
David Chan Atlassian Team Jun 25, 2013

I'm not sure what the user is attempting to do, but they can try "Archiving" the versions instead.

This will prevent those versions from showing up in selection boxes/filters (assuming that's what your user wants).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 4 hours ago in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

18 views 0 1
Join discussion

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