From dbaa32f307ac6aef073e21113bf912ed0286c79f Mon Sep 17 00:00:00 2001 From: kelvingoodson Date: Fri, 29 Jan 2010 16:59:48 +0000 Subject: first version to show live jira data mixed in -- needs a bit of tidying git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@904556 13f79535-47bb-0310-9956-ffa450edef68 --- sandbox/kgoodson/jagg/src/main/java/services/PlanViewImpl.java | 7 +++++-- sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'sandbox/kgoodson/jagg/src') diff --git a/sandbox/kgoodson/jagg/src/main/java/services/PlanViewImpl.java b/sandbox/kgoodson/jagg/src/main/java/services/PlanViewImpl.java index cca29fe7ae..1b71c9e66b 100644 --- a/sandbox/kgoodson/jagg/src/main/java/services/PlanViewImpl.java +++ b/sandbox/kgoodson/jagg/src/main/java/services/PlanViewImpl.java @@ -118,10 +118,13 @@ public class PlanViewImpl implements PlanView { System.out.println(i.toString()); List> c = i.getContent(); for (JAXBElement element : c) { - if("status".equals(element.getName().getLocalPart())){ + if("title".equals(element.getName().getLocalPart())) { + jd.setTitle((String)element.getValue()); + } + else if("status".equals(element.getName().getLocalPart())){ jd.setStatus((String)element.getValue()); } - if("responsible".equals(element.getName().getLocalPart())) { + else if("assignee".equals(element.getName().getLocalPart())) { jd.setAssignedTo((String)element.getValue()); } } diff --git a/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html b/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html index 3420bf907b..b5b3cba24c 100644 --- a/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html +++ b/sandbox/kgoodson/jagg/src/main/resources/uiservices/plan.html @@ -44,7 +44,7 @@ mscontent += "" +""+mswi[j].title+"" + ""+mswi[j].jira - +""+ ""+mswi[j].responsible+""+ ""+mswi[j].status+""+ "" + +""+ ""+mswi[j].jiraData.assignedTo+""+ ""+mswi[j].jiraData.status+""+ "" +""; } -- cgit v1.2.3