How do I create a Script Listener for a ComponentManagerStartedEvent?

The following events don't appear to be available in Scriptrunner 5.1.6's Script Listeners:

Strangely, Scriptrunner does support:

I would like to run a script that makes a call to Zephyr's REST API to reindex all test executions when we create a new node on a JIRA Data Center installation. Hence I'm looking for events that are called when JIRA starts or when a JIRA ndoe joins a cluster. How can I do that if these events aren't available for Script Listeners?

2 answers

Hi,

I think we need to add "IndexesRestoredEvent" [which you have mentioned in the ticket]. The reason "IndexesRestoredEvent" is not available in with other indexing event as it is implemented in a different package (com.atlassian.jira.index.ha) and does not implements "IndexEvent" interface.

We have open development ticket to add more events and we will try to support events you have listed.

Okay, thank you.

As a workaround, I've had to write a shell script, called with an 'at' command 10 minutes after the node boots, that executes a REST API call.

Potentially this same shell script could be used to make a REST API call to a special issue to trigger an IssueUpdated event, which could be picked up by a Script Listener. 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

77 views 0 5
Read article

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