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!
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
Stand out as a skilled Confluence Cloud administrator. The Confluence Administration for Cloud certification proves you can configure permissions, manage site and space settings, and monitor activity—ensuring secure, effective collaboration for your team.
Start here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.