Use case
Add a comment that includes the request participants' display name.
⚒️ Configuration
Add the Add comment post function to the workflow transition you want to place it in.
Comment text
Choose Add comment manually (parser expression).
Expression
%{{toString(textOnStringList(toStringList(%{issue.cfnnnnn}, ", "), userDisplayName(^%{seed.text})))}}
Replace nnnnn in the above expression with the ID of the Request participants field.
Further configuration
Comment visibility
By default it is set to Unrestricted (all users), but you can change this option.
You can select either a group, project role or set Jira Service Management visibilities.
Additional options
By default, no email will be sent for this comment. Hit the checkbox to send one!
Run as
Select which user will be used to execute this post function. By default this parameter is set to the current user. You can also use field codes to run the function as a dynamic user (e.g. current assignee).
Make sure that the user running the post function has all the relevant permissions to perform the actions defined in the configuration (e.g. "Update Issues")!
If you want to keep track the actions being performed automatically, we suggest to create a dedicated JWT account, granted all relevant permissions, and use it in the Run as parameter to identify which changes have been made with JWT.
📚 Related use cases
| Use case | JWT feature | Workflow function | Parser functions | Label |
|---|---|---|---|---|
| Add comment when creating issues outside of business hours |
|
withinCalendar() |
STAFF PICK |
|
| Add comment with the request participants' display name |
|
toString() textOnStringList() toStringList() userDisplayName() |
|
|
| Add internal Jira Service Management comment |
|
|
|
|
| Alert the assignee of important issues |
|
|
|
|
| Alert the reporter |
|
|
|