Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321838 - add support for sorting by original query ordering in task list
Summary: add support for sorting by original query ordering in task list
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 398640 (view as bug list)
Depends on:
Blocks: 211011
  Show dependency tree
 
Reported: 2010-08-05 05:50 EDT by Chris Beams CLA
Modified: 2013-01-21 13:31 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Beams CLA 2010-08-05 05:50:49 EDT
This issue uses Jira as a specific example, but I believe the functionality is general to Mylyn and applicable to any connector.

1) Create and save a Jira filter with an ORDER BY clause, e.g.: ORDER BY votes
2) Create a new Mylyn query and synchronize with that new filter
3) Notice that the order of the issues in the task list does not respect the ORDER BY clause, but rather Mylyn's default by-priority ordering.

Would it be possible to preserve query ordering such that this expectation is no longer violated?
Comment 1 Chris Beams CLA 2010-08-05 05:53:19 EDT
I accidentally filed this under ACTF.  Please move to Mylyn, thanks.
Comment 2 Steffen Pingel CLA 2010-10-25 12:47:09 EDT
I could see that being useful. There are other cases as well, e.g. subtasks that are arranged in a specific order. It would probably be possible to support this globally, i.e. to show the original order when "None" is selected in the sorting preferences, but I assume you would want to be able to select this on a per query basis?
Comment 3 Chris Beams CLA 2010-10-25 16:28:51 EDT
I think I'd like to see this behavior 'on by default', i.e.: always sort tasks in the order they came back from the repository.  However, if I attempt to manually re-sort the task list, it should allow me to override.  That might be inordinately complex to support, but it's the ideal.

On this same topic, I cannot seem to re-order any tasks in my task list, for any kind of query or category (local tasks or remote).  This means that the most basic use case of prioritizing a list of tasks based on hand-picked order (e.g.: backlog-style management) cannot be done.  Am I missing something?
Comment 4 Andrew Gvozdev CLA 2010-10-28 10:20:40 EDT
I am trying to pull the query from Bugzilla for "most voted" bugs. Obviously I want to see the most voted on the top and I got "order=bugs.votes" in my query. This one is different from my other queries for which I already set my favorite sorting order globally. Perhaps Mylyn could inspect the query and keep the original order in case of ordering clause is there (for known repository types)? Or there could be an advanced flag "do not sort" in query properties?
Comment 5 Steffen Pingel CLA 2011-01-04 14:26:35 EST
Yes, I think it would the most sense to make that an option in the query dialog. 

Manual sorting of the task list is currently not supported: bug 247310.
Comment 6 Chris Beams CLA 2012-05-15 15:30:33 EDT
Just a ping about this issue.  Would still love to see original repository ordering respected in Mylyn.  Thanks.
Comment 7 Steffen Pingel CLA 2013-01-21 13:31:04 EST
*** Bug 398640 has been marked as a duplicate of this bug. ***
Comment 8 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn