Versions Compared

Key

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

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 value

Visibility restriction  of the last comment  (info)

Output data type

Status
subtletrue
titletext

Example outputjira-administrators



UI Text Box
typeinfo

This field can be used to check for visibility 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.


UI Text Box
typewarning

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



Write


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:

InputDescription
DevelopersSets visibility to project role or group named Developers.
jira-developersSets visibility to the group jira-developers.



UI Text Box
typewarning

For service projects, "Public" and "Internal" (without double quotes) 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