Project versions must not be edited

I have the scriptlistner active that the changes to the project versions are distributed to the other projects. This also works. Now there are several project administators. I would like to forbid you to change the versions in your projects.

The idea is to write a scriptlistner, which causes an error on the interface when editing the version from the non-default project, and the action aborts.

How can I display an error in the scriptlistener on the interface?

Do you have other ideas?

Thanks for your help

2 answers

0 vote

A listener is too late.  It's not quite this technically, but think of the process:

  1. User clicks something to edit/add/remove a version
  2. User clicks commit to their change
  3. The version data is changed in the database
  4. A version updated event goes out
  5. Your listener would pick up the event, and, um, what?  It can't prevent a change, it's too late.  Plus, listeners don't have a front-end interface, there's nothing to display any errors on.

I'm afraid you're into hacking the core code in order to do this, a listener can't do it, the permissions allow users to change versions and that's all in the basics.

The closest I could get is a listener that spots changes and undoes them, but that's really going to annoy your users.


Thank you for the hint. :-( I do not want to go to the core of Jira. When upgrading, this leads to problems again and again. Then we have to live with it and I will at least send an email.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

243 views 1 18
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