Improve {{attachment.id}} smart value

XMLWordPrintable

      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. "1_2025-01-09T13_21_16.962Z.png"
      2. "asset object.jpg"
      3. "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.

            Assignee:
            Unassigned
            Reporter:
            Ashutosh Sharma (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: