%{issue.lastComment.visibility}
Read
This field can be used to check visibility restriction of a field entered in transition when it exists.
Write
In Jira Service Desk it also admits values public
and internal
(without double quotes), or alternatively jsd_public
and jsd_internal
to avoid name collision with existing project roles and user groups.