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

Bug 343447

Summary: improve display of ${connector.task.prefix} variable in commit templates
Product: z_Archived Reporter: Shawn Minto <shawn.minto>
Component: MylynAssignee: Shawn Minto <shawn.minto>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P3 CC: steffen.pingel
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch none

Description Shawn Minto CLA 2011-04-20 14:06:40 EDT
Currently, the template ${connector.task.prefix} just uses the AbstractRepositoryConnector#getTaskIdPrefix() method.  We should use the AbstractRepositoryConnectorUi#getTaskKindLabel(ITask) so that users can see the kind of the task when there are multiple kinds for a task repository.  For Bugzilla, this would mean that the commit message would no longer be:


NEW - bug 253126: externalize strings for org.eclipse.mylyn.team.*
https://bugs.eclipse.org/bugs/show_bug.cgi?id=253126

but would be:

NEW - Bug 253126: externalize strings for org.eclipse.mylyn.team.*
https://bugs.eclipse.org/bugs/show_bug.cgi?id=253126

for Trac, it would be:

TESTING - Ticket 13: summ 
http://server/tractest/ticket/13

instead of 

TESTING - # 13: summ 
http://server/tractest/ticket/13
Comment 1 Shawn Minto CLA 2011-04-20 14:08:41 EDT
Created attachment 193733 [details]
patch

Steffen, thoughts?
Comment 2 Steffen Pingel CLA 2011-04-20 15:19:59 EDT
While this looks better it breaks the hyperlink detector and possibly the reverse look up of tasks from the commit message. I'm okay with adding another template but I afraid that this change would break backwards compatibility.
Comment 3 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