SIL Listener script not being called on Work Started On Issue and Issue Resolved

I have a SIL script set to execute on two different listeners: one for Work Started On Issue and one for Issue Resolved.

Script One: Work Started On Issue

string LLINK_NAME = "Investigation";
string ev_issue   = "";
string [] actions  = {};
string [] chamado = linkedIssues(key, LLINK_NAME);


if (status == "In Progress") {
    if (arraySize(chamado) == 1) {
        ev_issue = chamado[0];
        if (%ev_issue%.status == "Waiting for Support L3") {
            actions = getAvailableTransitions(ev_issue);
            autotransition(actions[0], ev_issue, true);
        }
    }
}
return;

Script Two: Issue Resolved

string LLINK_NAME = "Coporative";
string ev_issue   = "";
string [] actions  = {};
string [] chamado = linkedIssues(key, LLINK_NAME);


if (status == "Done") {
    if (arraySize(chamado) == 1) {
        ev_issue = chamado[0];
        if (%ev_issue%.status == "Waiting for Corporate Evaluation") {
            actions = getAvailableTransitions(ev_issue);
            autotransition(actions[0], ev_issue, true);
        }
    }
}
return;

This scripts works normally when called from post functions.

Can someone help me ?

Thanks!

1 answer

1 accepted

Hi,

I've just tried your scripts, and they work ok on my JIRA instance.

What version of JIRA, JJupin and Katl-commons do you use?

Also, can you please check , if the Sil Listener was enabled? 

Best regards,

Raluca

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
Fadoua M. Boualem
Published yesterday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

381 views 5 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