Skip to content

Commit d70e76f

Browse files
committed
Add work-items GraphQL query
1 parent e91d0ac commit d70e76f

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
query {
2+
workItemsByReference(contextNamespacePath: "tech-marketing/demos/gitlab-agile-demo/initech",
3+
refs: [
4+
"tech-marketing/demos/gitlab-agile-demo/initech/music-store&2",
5+
"tech-marketing/demos/gitlab-agile-demo/initech&2",
6+
"tech-marketing/demos/gitlab-agile-demo/initech&5",
7+
"tech-marketing/demos/gitlab-agile-demo/initech/music-store/parent-portal#2"
8+
]) {
9+
nodes {
10+
id
11+
iid
12+
title
13+
webUrl
14+
workItemType {
15+
name
16+
}
17+
widgets {
18+
type
19+
... on WorkItemWidgetLabels {
20+
labels {
21+
nodes {
22+
id
23+
title
24+
}
25+
}
26+
}
27+
... on WorkItemWidgetLinkedItems {
28+
blocked
29+
blockedByCount
30+
blockingCount
31+
bockedBy:linkedItems(filter: BLOCKED_BY) {
32+
nodes {
33+
linkId
34+
linkType
35+
linkCreatedAt
36+
linkUpdatedAt
37+
workItem {
38+
id
39+
}
40+
}
41+
}
42+
related:linkedItems(filter: RELATED) {
43+
nodes {
44+
linkId
45+
linkType
46+
linkCreatedAt
47+
linkUpdatedAt
48+
workItem {
49+
id
50+
}
51+
}
52+
}
53+
bocks:linkedItems(filter: BLOCKS) {
54+
nodes {
55+
linkId
56+
linkType
57+
linkCreatedAt
58+
linkUpdatedAt
59+
workItem {
60+
id
61+
}
62+
}
63+
}
64+
}
65+
}
66+
}
67+
}
68+
}

0 commit comments

Comments
 (0)