diff --git a/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/WorkItemUpdatesServlet.java b/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/WorkItemUpdatesServlet.java index 0ee0f6a..bd7253c 100755 --- a/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/WorkItemUpdatesServlet.java +++ b/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/WorkItemUpdatesServlet.java @@ -380,7 +380,7 @@ private Collection retrieveChanges( WorkItemForJson workItemForJson; - // This is because WIs moved to the recyble bin are still in the Polarion WI table we query + // This is because WIs moved to the recycle bin are still in the Polarion WI table we query if (wasMovedToRecycleBin(workItem) && shouldIncludeItemFromRecybleBin(workItem)) { workItemForJson = buildDeletedWorkItemForJson(workItem); } else { diff --git a/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/model/WorkItemForJson.java b/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/model/WorkItemForJson.java index 5b3c66e..1a52cc8 100644 --- a/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/model/WorkItemForJson.java +++ b/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/model/WorkItemForJson.java @@ -36,6 +36,7 @@ public class WorkItemForJson { private String updated; // date-time format private String moduleId; private String moduleTitle; + private String moduleFolder; private String projectId; private Map customFields; private List assignees; @@ -332,6 +333,14 @@ public String getModuleTitle() { public void setModuleTitle(String moduleTitle) { this.moduleTitle = moduleTitle; } + + public String getModuleFolder( ) { + return moduleFolder; + } + + public void setModuleFolder(String moduleFolder) { + this.moduleFolder = moduleFolder; + } public String getProjectId() { return projectId; diff --git a/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CastUtils.java b/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CastUtils.java index 52c11a5..b2b192f 100644 --- a/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CastUtils.java +++ b/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CastUtils.java @@ -108,10 +108,10 @@ public static WorkItemForJson castWorkItem( workItemForJson.setUpdated(workItem.getUpdated().toInstant().toString()); } if (workItem.getModule() != null) { - workItemForJson.setModuleId(workItem.getModule().getId()); - } - if (workItem.getModule() != null) { - workItemForJson.setModuleTitle(workItem.getModule().getTitleOrName()); + IModule module = workItem.getModule(); + workItemForJson.setModuleId(module.getId()); + workItemForJson.setModuleTitle(module.getTitleOrName()); + workItemForJson.setModuleFolder(module.getModuleFolder()); } if (workItem.getProjectId() != null) { workItemForJson.setProjectId(workItem.getProjectId());