Send only public comments from Jira Service Management

This guides describe how you can send the comment only when there is a public comment made in JSM (e.g. Share with customers button)

Follow the steps or download the template here.

 Instructions

  1. Create an Action called Comment Receiver

  2. Select template category: Jira Service Desk Server

  3. Select template: Get request comments

  4. Click Create

  5. Change the URL to: {{baseUrl}}/rest/servicedeskapi/request/{{issue.key}}/comment/{{comments.latest.id}}

  6. Select the authentication to be a user that can login to Jira and fetch the comment, see Credentials for more info

  7. Click Triggers & Conditions and select Events

  8. Add the Comment event

  9. Select the project(s) to limit the scope and JQL if needed.

  10. Save the action

  11. Click create button again

  12. Select parent: Comment Receiver

  13. Select template application/json

  14. Click Create

  15. Go to the tab Triggers & Conditions

  16. Click on Parent section

  17. Enter the json path $.public

  18. Select operator to be =

  19. Enter the value; true

  20. Configure the request to post data to the external system

When this is done you will have a structure like this;

  1. Comment Receiver (this will receive the event and lookup the latest comment)

    1. Send public comment to external system (this has a parent condition to check for the public flag)

 Related articles