#import "./epic.fragment.graphql"

query issueEpics(
  $fullPath: ID!
  $title: String
  $state: EpicState
  $in: [IssuableSearchableField!]
  $iidStartsWith: String
) {
  workspace: group(fullPath: $fullPath) {
    id
    attributes: epics(
      search: $title
      in: $in
      state: $state
      includeAncestorGroups: true
      includeDescendantGroups: false
      iidStartsWith: $iidStartsWith
    ) {
      nodes {
        ...EpicFragment
        state
      }
    }
  }
}
