Forums

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

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

Alexandre Machado October 18, 2015

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

1 vote
Answer accepted
Raluca Panait
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 20, 2015

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
TAGS
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events