Issue Details (XML | Word | Printable)

Key: JRA-6765
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Brian Nguyen [OLD]
Votes: 17
Watchers: 13
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
JIRA

Allow users to choose sort field for Attachments

Created: 22/May/05 07:40 PM   Updated: 09/Sep/08 12:03 PM
Component/s: Attachments
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. HTML File view_attachments.jsp (7 kB)

Image Attachments:

1. attachments.png
(18 kB)

2. file_attachements_sortable.gif
(12 kB)
Issue Links:
Reference

Participants: Al Mecklenburg, Anton Mazkovoi [Atlassian], Brian Nguyen [OLD], Karsten Silz, Michael Strelnikov, Nick Menere [Atlassian], Paul Tate, Ray Oei [Furore], Sven Breidenstein, Vinh-Thach Nguyen and Zhang Yang
Since last comment: 12 weeks, 1 day ago
Support reference count: 4
Labels:


 Description  « Hide
At the moment sorting for attachments is by filename and then date. The user should have the choice on what field to sort on.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Ray Oei [Furore] added a comment - 03/Jun/05 03:56 AM
Seems related...

Zhang Yang added a comment - 09/Aug/05 09:35 PM
I'm waiting this new feature

Sven Breidenstein added a comment - 16/Jan/06 07:49 AM
Will be possible with following issue JRA-5351 ...

Sven Breidenstein added a comment - 24/Jan/06 10:25 AM
Hi there,
I have added some information to the "view_attachments.jsp", so that this will be always visible, not only as tooltipp. Maybe you find it also helpful.
Would be great to see this in Jira as default feature...

My "view_attachments.jsp" is also attached (Based on Jira 3.4.1).

Maybe someone can post here as hotfix, how to change the jsp that the order for the attachments is by date first and than the filename.

Regards
Sven


Nick Menere [Atlassian] added a comment - 24/Jan/06 09:27 PM
Thanks Sven.

I have created a new issue and scheduled it for a release.

Cheers,
Nick


Sven Breidenstein added a comment - 25/Jan/06 04:05 AM
Hi Nick,
good to know that you find it also helpful.
Maybe you have an idea for me how to change the file order to be sorted by date instead of filename or should I raise an support issue instead of discussing here ?
Regards
Sven

Anton Mazkovoi [Atlassian] added a comment - 26/Jan/06 08:40 PM
Sven,

Creating s Development Query support request on http://support.atlassian.com would help us a lot.

Thanks,
Anton


Karsten Silz added a comment - 06/Aug/07 07:10 PM
When you add attachments to an issue then they get a number in the Manage Attachments screen. However, that number isn't persistent since attachments are always sorted by name, and the number is just the current number in that sequence. That makes it hard to actually refer to attachments since their only other unique identifier is the name. So if there were multipe images, you would have to refer to their exact name.

This especially bad when referring to the attachment in an issue - for instance a screenshot that you want to include in a bug comment. Simply, you can't but I think you should.

I see two solutions:

  • Attachments get numbered per bug (1, 2, 3...) where the number expresses the sequence in which the attachments were added, and that number stays the same. When linking to an attachment, once could use a syntax like [issue number]#[attachment number] for auto-linking in an issue, unless that's already used to link to comments (in which case you could just add an a before the attachment number.
  • Attachments get numbered like bugs in a global unique number (as in Bugzilla), such as 812. When linking to the attachment, one could just link to the attachment number for auto-linking in an issue.

In both cases the table in the Manage Attachments could still be sorted by name.


Paul Tate added a comment - 06/Aug/07 07:25 PM
STOP!!!!

Paul Tate added a comment - 06/Aug/07 07:31 PM

Karsten,

Can you fix it so that these "failed to deliver" notices stop? I've
gotten a bunch of them.

Thanks,
Paul


Vinh-Thach Nguyen added a comment - 17/Jun/08 06:57 PM
We have made some improvement here

Michael Strelnikov added a comment - 18/Jun/08 08:49 AM
Excellent!
How can we make a "sort by date" be a default sorting method?

Al Mecklenburg added a comment - 09/Sep/08 12:03 PM
I have tried Vinh-Thach Nguyen's replacement view-attachments jsp file and it seems to work nicely. I was confused at first, however: for his change to work, Enable Thumbnails (Global Settings: Attachments) must be turned OFF.

To change things so the most recently added attachments appears last in the list, change the "var order = "DES" statement in function sortables_init() to "var order = "ASC"