-
Suggestion
-
Resolution: Unresolved
Current behavior:
The smart value {{attachment.id}} fetches attachments' IDs in alphabetical order and not by the latest (or last attachment) that was added.
Consider a scenario where 3 attachments are added to the issue:
- "1_2025-01-09T13_21_16.962Z.png"
- "asset object.jpg"
- "zeeattach.png"
When you print {{attachment.last.id}} smart value using 'Log action' in an Automation rule with 'Issue commented' trigger, it will give the ID of the "zeeattach.png" and {{attachment.first.id}} will give the ID of "1_2025-01-09T13_21_16.962Z.png".
Expected behavior:
The smart values {{attachment.last.id}} and {{attachment.first.id}} should fetch the attachment IDs according to the date and time they were added to the issue.