Oh, also, alarm scripts run in the gateway context, not a specific project. You can only import/use script set in the “Gateway Scripting Project” from your global gateway settings.
I don't think this is true in Ignition 8 - scripts in a notification pipeline block will run in the context of the project the pipeline is defined in, which could be his issue.
Hmm, I think I'm wrong here. Digging a little more.
update: yeah... it looks like despite pipelines belonging to a specific project now, the scriptable block was never updated to use the project script manager rather than the gateway one, which would be whatever is in the "global scripting project" setting.
Well… my initial reaction to this screams “bug” but if we change this behavior now we’ll break existing pipeline script blocks. I’m not sure what we’ll do about it. Maybe it will have to become a configuration option whether it’s gateway or project scope and remain defaulted to gateway.