Editing comments in automation

Mikkel Riiskjær Johannsen May 18, 2022

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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
AUG Leaders

Atlassian Community Events