diff options
| author | Kevin Sawicki | 2011-03-24 23:06:17 +0000 |
|---|---|---|
| committer | Chris Aniszczyk | 2011-03-30 22:06:58 +0000 |
| commit | 939031cb56d2dab5ef9ce0211de0c5524cbade27 (patch) | |
| tree | 379334633861b0e2ccf0f604bb5b6b0972c2086a | |
| parent | 9cde2af6d453089109be5fc42ac40b1c3559b312 (diff) | |
| download | egit-github-939031cb56d2dab5ef9ce0211de0c5524cbade27.tar.gz egit-github-939031cb56d2dab5ef9ce0211de0c5524cbade27.tar.xz egit-github-939031cb56d2dab5ef9ce0211de0c5524cbade27.zip | |
Add issue reporter as task attribute
The user who reported the issue will now be display in the People
section of the task editor.
Bug: 340902
Change-Id: I459d0b45abd7087ea87466a11c20622e2aefaa9a
Signed-off-by: Kevin Sawicki <kevin@github.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
2 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskAttributes.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskAttributes.java index c0927d01..2c847dcd 100644 --- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskAttributes.java +++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskAttributes.java @@ -24,7 +24,9 @@ public enum GitHubTaskAttributes { MODIFICATION_DATE("Modified:",TaskAttribute.DATE_MODIFICATION,TaskAttribute.TYPE_DATETIME,true,true,false), CLOSED_DATE("Closed:",TaskAttribute.DATE_COMPLETION,TaskAttribute.TYPE_DATETIME,false,true,false), - STATUS("Status:",TaskAttribute.STATUS,TaskAttribute.TYPE_SHORT_TEXT,true,false,true); + STATUS("Status:",TaskAttribute.STATUS,TaskAttribute.TYPE_SHORT_TEXT,true,false,true), + REPORTER("Reporter:", TaskAttribute.USER_REPORTER, TaskAttribute.TYPE_PERSON, true, true, false) + ; private final String id; private final String label; diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskDataHandler.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskDataHandler.java index 62649e79..fd5c2bdd 100644 --- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskDataHandler.java +++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskDataHandler.java @@ -73,6 +73,7 @@ public class GitHubTaskDataHandler extends AbstractTaskDataHandler { createAttribute(data, GitHubTaskAttributes.CREATION_DATE, toLocalDate(issue.getCreated_at())); createAttribute(data, GitHubTaskAttributes.MODIFICATION_DATE, toLocalDate(issue.getCreated_at())); createAttribute(data, GitHubTaskAttributes.CLOSED_DATE, toLocalDate(issue.getClosed_at())); + createAttribute(data, GitHubTaskAttributes.REPORTER, issue.getUser()); if (isPartial(data)) { data.setPartial(true); |
