Skip to content

Commit

Permalink
Added module folder to work item object
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdasilv committed Oct 24, 2023
1 parent 173c942 commit d7984c9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ private Collection<String> 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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> customFields;
private List<String> assignees;
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit d7984c9

Please sign in to comment.