How to block issueUpdated event with plugin by using listener class

Hi everyone,

I have implemented a plugin that makes operation on subtasks when parent issue has updated.
I want to add a control that checks one of custom field's changes. This custom field is numberfield type.

My control will apply if new value of this custom field is bigger than old value issue update event can not fire and show a message to user like invalidInputException class messages, but i cannot block the issue updated event.

My algorithm is simply like below;

public void issueUpdated(IssueEvent event)


new_value and old_value are comes from changeHistoryManager object

if(new_value < old_value){

// do not complete issue updated event

// return a message to user



Could anybody help me. i will be appreciated.

2 answers

1 accepted

you cant, because you are using ondemand which does not permit 3rd party plugins to be installed. See

1 votes

Even if you were not on OnDemand (See Andy's answer), this simply won't work.

The problem is that you have not seen the timing cycle. An issue event happens AFTER the update is applied. You simply can't "block" an action based on an event, it's too late, it's done.

There's a phrase "closing the stable door after the horse has bolted". The horse has run off. You can close the door, but it's not going to stop the horse reaching freedom (or a burger factory). It's gone.

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,990 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