I have a Rule who should start a script I have in the “Script” section (see image at the bottom).
So I have selected as action “run rules” and selected the script.
But if this is triggered I don’t have the event.itemName available, but if I copy the script in the “execute a given script” inside the rule it is working.
But I need the scripts outside in the “Scripts” section and not inside the rule to reuse the scripts.
So is this a bug or should this really be different?
Working as designed. event represents how the rule was triggered. If you use run rule, that rule isn’t triggered by an event. Therefore there is no event.
If you use a Script Action to run the other rule (a Script is a rule BTW) you can pass properties to the called rule (details differ based on the language of the script action).