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'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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nic,
you are right, the event is fired only after the deletion is done :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can't. If they are a project admin, then they have the right to maintain versions - add, change and delete.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should really talk to him instead of putting workarounds ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.