Skip to content

Commit

Permalink
Added back links to linked work items
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdasilv committed Oct 25, 2023
1 parent d7984c9 commit af56f5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class WorkItemForJson {
private String author;
private List<String> categories;
private String[] comments;
private List<LinkedWorkItem> linkedWorkItems; // All links (in and out links)
private List<LinkedWorkItem> linkedWorkItems;
private List<String> watchers;

private Collection<WorkItemChange> workItemChanges;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,12 @@ public static WorkItemForJson castWorkItem(

List<ILinkedWorkItemStruct> directLinksStruct =
(List<ILinkedWorkItemStruct>) workItem.getLinkedWorkItemsStructsDirect();
List<ILinkedWorkItemStruct> backLinksStruct =
(List<ILinkedWorkItemStruct>) workItem.getLinkedWorkItemsStructsBack();
directLinksStruct.addAll(backLinksStruct); // both direct and back links
List<LinkedWorkItem> linkedItems =
(List<LinkedWorkItem>)
directLinksStruct.stream()
directLinksStruct.stream()
.filter(
linkStruct ->
Arrays.asList(includeLinkRoles)
Expand Down

0 comments on commit af56f5f

Please sign in to comment.