You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
For many customers (using Outlook), we get the entire message history when they reply to our custom emails coming from JSM. Those custom emails have all of the current ticket comments included. This is causing the JSM UI ticket comments to be quite long and difficult for our Support people to read through.
I'd like to add an automation for when comments come in on an emailed ticket to remove anything starting with "From: no-reply@automation.atlassian.com" as we don't need the ticket history duplicated in each comment, but I'm not finding anything online about how to truncate a comment using Jira Automation.
Any help would be greatly appreciated!
You can use the substringBefore smart value to get the values you want https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#substringBefore-String-separator-
So you could use something like the following:
{{issue.description.substringBefore"From: no-reply@automation.atlassian.com")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you manage to do it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, it worked in testing!
{{issue.comments.last.body.substringBefore("Test string here")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.