Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Page properties
hiddentrue
Status
Tech review

Status
titletodo

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Page properties
hiddentrue
id0


Field code%{issue.lastComment.visibility}
Type

Status
subtletrue
colourGreen
titleRead / Write

Available since




Code Block
titleField code
linenumberstrue
%{issue.lastComment.visibility}

Read


Page properties
id1


Returned valueName of a group or project role the visibility of the last comment entered in the issue is restricted to. If no restriction is applied to the comment, this field returns an empty string. For Service Desk's special Internal visibility restriction, string "Internal" is returned.

Visibility restriction  of the last comment  (info)

Output data type

Status
subtletrue
titletext

Example outputjira-administrators



UI Text Box
typetipinfo

This field can be used to check for visibility restriction of a field entered in transition when it exists.

Image RemovedWrite

Updates

restrictions of the last comment. The output will be the  group or project role the visibility of the last comment is restricted to.

If no restriction is applied to the comment or there is no comment present yet, this field returns an empty text.

Page properties
id2
Additional information for writing values


UI Text Box
typewarning

For service projects, "Public" is returned for unrestricted (customer-visible) comments and "Internal" for internal (agent-only) ones.



Image AddedWrite


Page properties
id2


Valid text input

Name of a group or project role (info)

Valid numerical input


Example inputAdministrators, jira-administrators, jsd_internal



UI Text Box
typeinfo

Updates the visibility of the last comment:

in the issue if it exists. Can be used to set the visibility of a comment introduced with virtual field New comment. Developers : for setting with name
InputDescription
DevelopersSets

Allowed input 

Status
subtletrue
titletext

name of a Project Role or name of a Group.

Allowed input 

Status
subtletrue
titlenumber

Example input visibility to project role or group named Developers.
jsd_internal : for setting JSD internal visibility.
jira-developers : for setting
Sets visibility to "the group jira-developers" user group.



UI Text Box
typeinfowarning

For service projects, "Public" and "Internal" In Jira Service Desk it also admits values public and internal (without double quotes) , or alternatively are available to control the visibililty among agents and customers. Alternatively, you can use  jsd_public and jsd_internal to avoid name collision with existing project roles and user groups.

InputDescription
jsd_internalSets the service project visibility to Internal.




Page properties
hiddentrue
id1


Field code server (context "issue")

%{issue.lastComment.visibility}

00130

Field code server (context "parent")

%{parent.lastComment.visibility}

00132

Field code cloud (context = "issue" "parent" or "seed")%{context.labels}
Map(error)
Notes




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged