Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336551

Summary: provide support for custom rank field
Product: z_Archived Reporter: Jim Kass <jim.kass>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact: Steffen Pingel <steffen.pingel>
Severity: enhancement    
Priority: P3 CC: fwdk98003
Version: 3.5   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Jim Kass CLA 2011-02-07 13:36:28 EST
This ticket is related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=176964.

Currently, you can sort on "Priority", "Rank", "Summary", "Date Created", "Due Date", "Modification Date", "Task ID" or "Type".  Trac does not natively use "Rank" or "Due Date", however many people may have created these fields as custom fields.

Because the connector doesn't appear to use ANY custom fields either in Queries (as per https://bugs.eclipse.org/bugs/show_bug.cgi?id=176964) or Sort, if you have developed a workflow that prioritizes tickets with priority but "orders" them within that priority using a custom field, the order is lost within Eclipse/MyLyn.

We're having to rely on our ticket list in the browser, then enterting the ID of the ticket we want to work on in Eclipse to start working on it.  The back and forth makes the Task List view somewhat moot - except to track context.

I tried creating a custom field named "Rank" but that didn't work.  It seems that it would be a great leap forward in usability before tackling the more difficult project of full integration of custom fields.
Comment 1 Steffen Pingel CLA 2011-02-07 15:57:33 EST
It sounds reasonable to support a rank field in Trac. In the past we have added this for fields where we had reasonable indication that it was a commonly used convention, e.g. tasks of type "story" are decorated differently although it's not a default type in Trac.

Can you provide more details how you defined the rank field or point me at Trac plug-ins that support ranking?
Comment 2 Jim Kass CLA 2011-02-07 18:14:44 EST
(In reply to comment #1)
> It sounds reasonable to support a rank field in Trac. In the past we have added
> this for fields where we had reasonable indication that it was a commonly used
> convention, e.g. tasks of type "story" are decorated differently although it's
> not a default type in Trac.
> 
> Can you provide more details how you defined the rank field or point me at Trac
> plug-ins that support ranking?

I created "Rank" as a custom field in Trac, but as stated it did not use this field when sorting.
Comment 3 Steffen Pingel CLA 2011-02-07 22:31:38 EST
Could you post the definition for the custom field from your trac.ini?
Comment 4 Jim Kass CLA 2011-02-09 15:00:19 EST
(In reply to comment #3)
> Could you post the definition for the custom field from your trac.ini?

rank = select
rank.format = plain
rank.label = Rank
rank.options = 1|2|3|4|5|6|7|8|9|10
rank.order = 10
rank.value = 0
Comment 5 Jim Kass CLA 2011-02-18 18:45:56 EST
Just to add to this: I was using "Rank" because it was already an option available in the sortby options.

I think it makes sense for existing fields that are already available to be used for sorting to be able to be read if the user has created a custom field of the same name.

That way, I could also create a "Due Date" field in trac, and that could be read within Mylyn.

Do you think this is reasonable, and any idea on how complex it would be?  Perhaps could you point me in the general direction so maybe I could determine a patch of my own?
Comment 6 Tek Kim CLA 2016-03-29 12:58:10 EDT
We are also doing similar thing with bugzilla.  We have defined a custom field ("Priority Order") with in Bugzilla to set priorities of bugs.  However, Mylyn doesn't have the option to sort by this custom field so we rely on web browser to figure out our priority.
Comment 7 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