Is there a way to stop user from deleting the created version in jira project?
Yes, talking will do but i also wanted to take care if somebody unknowingly deletes the version.
Using versiondeleteevenet to get notification
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...
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).
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
It looks like you're new here. Sign in or register to get started.