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 votes

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,880 views 12 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot