summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/work_items/graphql/notes/work_item_notes_by_iid.query.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/work_items/graphql/notes/work_item_notes_by_iid.query.graphql')
-rw-r--r--app/assets/javascripts/work_items/graphql/notes/work_item_notes_by_iid.query.graphql32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/assets/javascripts/work_items/graphql/notes/work_item_notes_by_iid.query.graphql b/app/assets/javascripts/work_items/graphql/notes/work_item_notes_by_iid.query.graphql
new file mode 100644
index 00000000000..6b37c68cb43
--- /dev/null
+++ b/app/assets/javascripts/work_items/graphql/notes/work_item_notes_by_iid.query.graphql
@@ -0,0 +1,32 @@
+#import "~/graphql_shared/fragments/page_info.fragment.graphql"
+#import "./work_item_note.fragment.graphql"
+
+query workItemNotesByIid($fullPath: ID!, $iid: String, $after: String, $pageSize: Int) {
+ workspace: project(fullPath: $fullPath) {
+ id
+ workItems(iid: $iid) {
+ nodes {
+ id
+ iid
+ widgets {
+ ... on WorkItemWidgetNotes {
+ type
+ discussions(first: $pageSize, after: $after, filter: ALL_NOTES) {
+ pageInfo {
+ ...PageInfo
+ }
+ nodes {
+ id
+ notes {
+ nodes {
+ ...WorkItemNote
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}