Since the default notification options in JSM are very limited, I was looking into JSM automation to create custom email notifications to send to our clients using different triggers (like creating a ticket or adding a comment). Here is the part of the email that I need help with :
Hi @David Audet
For your first question to reverse the comment ordering, rather than using the built-in smart value for comments, I believe the rule would need to call the REST API endpoint and pass the parameter to orderBy the ascending created date / time. That may be called using the Send Web Request action.
The internal filtering would be adjusted to instead check if the attribute jsdPublic is true or false in the webresponse smart value.
For the second question, in the comment body, attachment names are in the markup, and may be parsed out using text functions. When converted to text, those will look like this example comment text:
my internal comment with an attachment !myAttachedFilename.png|width=513,alt="myAttachedFilename"! my end of the comment
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.