Automation - check attachment filesize

Cedric Tornow
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 11, 2024

Hi Folks,

I'm trying to check the size of an Attachment with the following smart value: {{attachment.size}}

size2.jpg

Looking to the smart values doc, the size is expressed in Bytes.

size.png

By testing the automation, I can see the condition does not match even if I set it to a very low value. I tried also to put "1Kb", that doesn't work either.

Any advice ?

Thks in advance for your support !

 

1 answer

1 accepted

2 votes
Answer accepted
Duc Thang TRAN
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.
July 11, 2024

Hello @Cedric Tornow 

The smart value {{attachment.size}} will provide you the number attachement in your issue 

If you looking for a size of a attachement you can use this smart value 

{{attachment.[xxx].size}} with [xxx] is the name of your attachement

orthewise you can using {{attachment.last.size}} or {{attachment.first.size}} for the last or first attachement

 

Hope this can help :) 

Cedric Tornow
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 11, 2024

@Duc Thang TRAN it works like a charm, thanks !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events