Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Exclude Attachments When Getting Jira Comments Automation

Derek LoGrande February 11, 2025

Hi,

I have a working automation that successfully gets all comments from an issue and writes them into a single custom field string value. Problem is that I want to exclude attachments. Is there any way I can only get user entered text and exclude attachment names?

image.pngimage.png

Thanks!

Derek

1 answer

0 votes
Gor Greyan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2025

Hi @Derek LoGrande

Try the following smart value.

{{issue.comments.latest.body.replace("[Attachment:.*]", "")}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events