Gateway tag change script - event.getTag issue

I’m having trouble getting the name of the tag in a gateway tag change script. When using
name = event.getTag().getName().toStringFull()
I get this error: com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File “”, line 10, in AttributeError: ‘com.inductiveautomation.ignition.common.util.Filte’ object has no attribute ‘getTag’

I can get the path without error by using:
path = event.getTagPath().toStringFull()

Version: 8.0.2

The event doesn’t have a getTag() method.

Try event.getTagPath().getItemName() instead?

That worked. Thanks.

I found getTag() mentioned here:
https://docs.inductiveautomation.com/display/DOC80/Gateway+Event+Scripts#GatewayEventScripts-TagChangeScripts

Thanks, looks like this page needs to be updated.

Apologies for the outdated docs. I went and updated the Tag Change methods on that page. It may be better to list those methods on a separate reference page, but I’ll leave them there for now.