- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2021 07:13 AM
Hello,
I have a catalog item. I can create RITM's for this catalog item. In my workflow, I would like to check if any additional comments have been added (not by the system but any other user) after the ticket is created in my workflow script.
If some comments are added, I want to take a different flow in my workflow?
These are the Additional Comments in the Notes that I am talking about.
I hope the question is clear.
Thank you
Solved! Go to Solution.
- Labels:
-
Request Management
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2021 07:18 AM
If it's the request item in the workflow the below code should work.
var comments = current.comments.getJournalEntry(1);
if(comments != "") {
// comment was posted to current request item.
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2021 07:18 AM
If it's the request item in the workflow the below code should work.
var comments = current.comments.getJournalEntry(1);
if(comments != "") {
// comment was posted to current request item.
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2021 09:02 AM
How can we detect this in Business Rule? I have a script that needs to be executed when comments are added or changed.