<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
On Dec 7, 2016, at 1:17 PM, Alex Hall <<a href="mailto:ahall@autodist.com" class="">ahall@autodist.com</a>> wrote:<br class="">
<div>
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">I guess that's it for now. I'd like a way to watch the different scripts do their thing for a single transaction, and I need to better understand how the different scripts decide when to fire and when to stay quiet. Thanks as always!<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
</div>
The debug log will do just that.  It will tell you what scrip is being skipped or is triggering for what ticket and transaction.
<div class=""><br class="">
</div>
<div class=""><u class="">Example of a ticket being created:</u></div>
<div class="">[16981] [Mon Oct 17 16:03:31 2016] [debug]: About to prepare scrips for transaction #3644426 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)</div>
<div class="">[16981] [Mon Oct 17 16:03:31 2016] [debug]: Found 20 scrips for TransactionCreate stage with applicable type(s) Create for txn #3644426 on ticket #20035600 (/opt/rt4/sbin/../lib/RT/Scrips.pm:495)<br class="">
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #18 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #20 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #42 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #21 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #24 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #25 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #78 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16981] [Mon Oct 17 16:03:31 2016] [debug]: About to commit scrips for transaction #3644426 (/opt/rt4/sbin/../lib/RT/Transaction.pm:210)<br class="">
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Committing scrip #13 on txn #3644426 of ticket #20035600 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)<br class="">
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Committing scrip #16 on txn #3644426 of ticket #20035600 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)</div>
<div class=""><br class="">
</div>
<div class=""><u class="">Example of a custom field change (different ticket than above):</u><br class="">
<div class="">[16980] [Mon Oct 17 16:03:55 2016] [debug]: About to prepare scrips for transaction #3644476 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)</div>
<div class="">[16980] [Mon Oct 17 16:03:55 2016] [debug]: Found 8 scrips for TransactionCreate stage with applicable type(s) CustomField for txn #3644476 on ticket #20035308 (/opt/rt4/sbin/../lib/RT/Scrips.pm:495)<br class="">
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #21 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #24 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #25 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #31 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #32 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #74 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)<br class="">
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #78 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)</div>
<div class=""><br class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
--<br class="">
Landon Stewart<br class="">
Lead Analyst - Abuse and Security Management<br class="">
INTERNAP ®<br class="">
📧 <a href="mailto:lstewart@internap.com" class="">lstewart@internap.com</a><br class="">
🌍 <a href="http://www.internap.com" class="">www.internap.com</a></div>
</div>
</div>
<br class="">
</div>
</div>
</body>
</html>