Date: Fri, 29 Mar 2024 08:19:29 +0100 (CET) Message-ID: <1169123888.508.1711696769622@apps-confluence-5.apps-confluence.apps.svc.cluster.local> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_507_106141360.1711696769622" ------=_Part_507_106141360.1711696769622 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
SINCE VERSION= 2.2
There are two different ways to do it:
Once created a comment (e.g., using "New comment" v= irtual field), you can use virtual field "Last comment's visibility= restriction" for setting visibility restriction. You should write= on this field value "internal" or "public" (without double quotes) for setting JSD (Jira Service Desk) comment's vi= sibility.
A more direct way to do it is simply by adding string ": {vi= sibility=3Dinternal}" or ": {visibility=3Dpublic}= " at the end of your comment's body when creating a comment with "N= ew comment" or when editing a comment with "Last comment= strong>".
This is an example of the second option:
Text to be parsed in the example is: This is an internal c=
omment.:{visibility=3Dinternal}
And here is the resulting comment:
You can also use the name of a group or the&n= bsp;name of a project role as value of optional param= eter visibility(i.e., ": {visibility=3Djira-d= evelopers}" or ": {visibility=3DManagers}"), and = the visibility will be set for entered group or project role.
What should I do if I want to copy the comment from the actual issue fro= m Field "Transition's comment - [Text]" to the linked issue into the field = "New comment - [Text]? How can I add the visibility to the role "Users"?
You can do it using Write field on linked issues or sub-tasks= strong> post-function with the following configuration:
Text to be parsed in the example is: %{00127} : {visi=
bility=3DUsers}
Note that
Any way to use this in the conditional execution of a post function? if = a comment is internal, send an email to someone? or verify the comment is n= ot internal? that type of thing. Thank you.
Assuming that your condition is on comment entered in the transition, yo= u can use boolean expressions like these:
%{00127} !=3D null AND %{00130} =
=3D "Internal"
%{00127} !=3D null AND %{0013=
0} !=3D "Internal"
%{00127} !=3D null AND %{00130} =3D=
"Public"
Note that %{00127} is field code for Tra= nsition's comment, and %{00130} is field code fo= r Last comment's visibility restriction.
Write field on linked issues or sub-tasks