How can I get the last uploaded attachment by API call?
I don't understand the sorting of the attachments list using:
../rest/api/2/issue/FWT-307?fields=attachment
You will need to get the result and then perform sorting by yourself. The REST API call will return the created date:
I hope that this helps.
Thanks,
Moga
ok but do you know the sorting used by API call?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the result I got, I would say from oldest to newest. But then again, it's not documented in Get issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.