summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/sidebar/queries/project_milestones.query.graphql
blob: d9eab18628dd2b02620366c9c2c0048822029f94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#import "./milestone.fragment.graphql"

query projectMilestones($fullPath: ID!, $title: String, $state: MilestoneStateEnum) {
  workspace: project(fullPath: $fullPath) {
    __typename
    id
    attributes: milestones(
      searchTitle: $title
      state: $state
      sort: EXPIRED_LAST_DUE_DATE_ASC
      first: 20
      includeAncestors: true
    ) {
      nodes {
        ...MilestoneFragment
        state
      }
    }
  }
}