Using system.project.getProjectName() in an alarm pipeline script

Running Version 8.1.1
So I have a scripting block in an alarm pipeline and I was hoping to get the name of the project dynamically to use in the subject line for the email notification later in the pipeline. I found the the system.project.getProjectName() function and I though it would be the correct fit. But when the script is executed I do not get the name of the project that the pipeline is in. Instead I get the name of the Gateway Scripting Project. I am confused why the script that is running in the alarm pipeline is returning the name of the Gateway scripting project instead of the name of the project that the pipeline belongs to

I think this might be a bug. The script block may be executing scripts in the context of the gateway scripting project instead of the project the pipeline is in.

1 Like

Not sure if it is relevant but the project that the pipeline is in is inherited from a project with the same name as the gateway scripting project.

That being said the pipeline itself is not inherited