Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner Listeners do not execute

Ovidiu Ostafi March 11, 2022

I am trying to run any listeners basically from ScriptRunner on Jira Cloud, I've added the examples but they do not trigger.
I've removed one example and change the other as follows:

- left the condition as: `!!issue.epic && issue.issueType.name != 'Sub-task'`

- updated the script to just log as: `logger.info("The issue is ${issue}")`

The example listeners do not get triggered neither is mine.

Is there any extra step that I need to make in order to get the ScriptRunner listeners basically trigger on Jira issue events?

 

1 answer

1 accepted

0 votes
Answer accepted
Sachin Dhamale
Community Champion
March 11, 2022

@Ovidiu Ostafi ,

Welcome to the Atlassian Community.

I think the issue is with your condition.

To confirm that just remove the condition and run simple code or just display log

and check the listener is triggering or not


Accept the answer if it helps 

Ovidiu Ostafi March 11, 2022

Doesn't seem to fire at all, I have empty condition, the events are Issue Created and Issue Updated, in the script I only have one line of log.

I want to mention that I didn't installed ScriptRunner, it was already installed by previous employees, with that in mind maybe they disabled it somehow in terms of events.

Are there any Jira webhooks that ScriptRunner sets up while installing itself?
I see no webhooks for ScriptRunner in Jira.

listener.png

Sachin Dhamale
Community Champion
March 11, 2022

@Ovidiu Ostafi ,

 

I have tried this and its working fine. If you see at the bottom of page you can see the last run history. I selected the example script to comment on issue and its working fine

 

Script Listener.png

 

If its still not work then try to install plugin again and check

Ovidiu Ostafi March 12, 2022

It's basically a license problem, the ScriptRunner doesn't seem to be licensed on my end.

Sorry for all the trouble that I've put you through, thank you for your time and support.

Sachin Dhamale
Community Champion
March 12, 2022

No Problem

I am glad you identify the issue

Suggest an answer

Log in or Sign up to answer