Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-08-17 20:14:21 -0400
committerspingel2008-08-17 20:14:21 -0400
commit96bd243dcb07cf4c0026a3ca3430111735e14bdd (patch)
treedc9b34dd75af34d7d577bac295b41918d40a9ee7
parentac71bbd9973cf502087709961d0dbfc1461a62ea (diff)
downloadorg.eclipse.mylyn.tasks-96bd243dcb07cf4c0026a3ca3430111735e14bdd.tar.gz
org.eclipse.mylyn.tasks-96bd243dcb07cf4c0026a3ca3430111735e14bdd.tar.xz
org.eclipse.mylyn.tasks-96bd243dcb07cf4c0026a3ca3430111735e14bdd.zip
NEW - bug 241172: summary not set correctly for cloned tasks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=241172
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
index cce086641..959e4a669 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
@@ -826,6 +826,13 @@ public class TasksUiInternal {
public static void createAndOpenNewTask(TaskData taskData) throws CoreException {
ITask task = TasksUiUtil.createOutgoingNewTask(taskData.getConnectorKind(), taskData.getRepositoryUrl());
+ AbstractRepositoryConnector connector = TasksUi.getRepositoryManager().getRepositoryConnector(
+ taskData.getConnectorKind());
+ ITaskMapping mapping = connector.getTaskMapping(taskData);
+ String summary = mapping.getSummary();
+ if (summary != null && summary.length() > 0) {
+ task.setSummary(summary);
+ }
UnsubmittedTaskContainer unsubmitted = ((TaskList) getTaskList()).getUnsubmittedContainer(taskData.getRepositoryUrl());
if (unsubmitted != null) {
TasksUiInternal.getTaskList().addTask(task, unsubmitted);

Back to the top