This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 320697 - [regression] priorities mapped to P3 when migrating from Bugzilla 3.4 or earlier
Summary: [regression] priorities mapped to P3 when migrating from Bugzilla 3.4 or earlier
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P2 major (vote)
Target Milestone: 3.4.1   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 309105
  Show dependency tree
 
Reported: 2010-07-23 04:35 EDT by Peter Kullmann CLA
Modified: 2010-07-29 00:34 EDT (History)
3 users (show)

See Also:


Attachments
fix and test case (15.41 KB, patch)
2010-07-29 00:30 EDT, Steffen Pingel CLA
no flags Details | Diff
mylyn/context/zip (16.63 KB, application/octet-stream)
2010-07-29 00:30 EDT, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Kullmann CLA 2010-07-23 04:35:09 EDT
Yesterday I noticed that all my tasks have priority P3 when hovering over the tasklist and in the icon displayed in the task editor (to the
left of the title). This was definitely not the case when I was using the older version in ganemeade.

I tried to update the repository configuration (Task Repositories view > Popup Menu > Update 
Repository Configuration) and to re-sync my tasks.

Furthermore, I then tried to delete and recreate the task repository and I also tried a
new workspace all to no success: The priorities of our bugzilla seem not
to be mapped to the mylyn priorities.

We use a 3.6 bugzilla with the default priorities (P1 to P5).
Comment 1 Peter Kullmann CLA 2010-07-23 05:53:22 EDT
The reason for our problem was this:
- Bugzilla 3.6 ships with priorities "Highest", "High", ... instead of "P1", "P2", ...
- The Mylyn Bugzilla connector has mappings for priorities hard coded. If Bugzilla version is >= 3.6 it expects "High" and not "P2"

Our bugzilla installation was just updated to 3.6 and therefore kept the old "P1" priorities. After my update to the newest Mylyn it seemed as though as the tasks have lost their priorities.

The good news is that it is possible (and easy) to update the priority field values in bugzilla. After setting them to the expected values mylyn works again as expected.
Comment 2 Peter Kullmann CLA 2010-07-23 05:58:58 EDT
The issue here is related to bug 242739. 

I'm leaving this open, but for us it is no longer an issue.
Comment 3 Steffen Pingel CLA 2010-07-27 13:08:04 EDT
Please update to the latest version of Mylyn.

*** This bug has been marked as a duplicate of bug 310875 ***
Comment 4 Steffen Pingel CLA 2010-07-28 23:17:50 EDT
Thanks for the detailed explanation, Peter. Sorry for closing this bug prematurely. It's a very common scenario that Bugzilla repositories are migrated, so it seems likely that priority levels would be P1 - P5 even in version 3.6 and later.
Comment 5 Steffen Pingel CLA 2010-07-29 00:30:02 EDT
Created attachment 175453 [details]
fix and test case
Comment 6 Steffen Pingel CLA 2010-07-29 00:30:04 EDT
Created attachment 175454 [details]
mylyn/context/zip
Comment 7 Steffen Pingel CLA 2010-07-29 00:31:59 EDT
Patch committed to head and e_3_6_m_3_4_x branch.