Automation for Jira - How to keep track of the last comment made by an Agent ( in Jira Service Management )

Still need help?

The Atlassian Community is here for you.

Ask the community

robotsnoindex


Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary


This article explains how to create a rule that will store the last comment made by an Agent that can be used in other Automation rules and reports

Environment

  • Jira Server / Data Center 8.0.0 and any higher version
  • Automation for Jira 7.0.0 and any higher version

Solution

Create an Automation rule with the following properties:

  • Trigger: When issue commented
  • Condition: If all match
    • {{comment.internal}} equals false
    • Initiator is in jira-servicedesk-users
  • Action: Set entity property
    • Entity type- Issue
    • Property key- lastAgentComment
    • Property value- {{comment.body}}

Afterwards you can use the smart value {{issue.properties.lastAgentComment}} to reference the last comment made by an Agent


Last modified on May 31, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.