Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,257
Community Members
 
Community Events
165
Community Groups

Editing comments in automation

Hi,

Im trying to remove our E-mail signature from incoming comments on an issue, but with no luck so far.

This is where im at now, after trying many different Smartvalues syntax.

Issue comment edit.png


I want to remove all the text after the redline using the "substringafterlast"Remove comment substring.png function, can someone help me figurering it out?


1 answer

0 votes
Andy Heinzer Atlassian Team May 20, 2022

Hi Mikkel,

If I understand correctly, you want to remove the email signature from this comment using automation.  The substringAfterLast() function has a note of its function:

Returns the text after the last occurrence of the given separator.

In your example, the string of that URL is repeated again at the bottom of the signature.  Hence, this is not returning what you expect here.  Perhaps you can adjust this string to be

eicon.dk <https://eicon.dk>

As this should then match the line I think you are expecting.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you