%{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, see the following examples:
Developers
: for setting visibility to project role or group with name Developersjsd_internal
: for setting JSD internal visibilityjira-developers
: for setting visibility to "jira-developers" user group