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

0 votes
Accepted answer

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.


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

0 votes

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.

0 votes
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
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,409 views 15 19
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