-
Type:
Suggestion
-
Resolution: Duplicate
-
Component/s: Rule - Smart Values
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.
- duplicates
-
AUTO-215 Make it easier to work with smart values, e.g. for custom fields - suggestions in product, validation / autocomplete (automatically populate) for all fields that support this, add a simple UI to iterate over field values for common use cases
- In Progress