lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

get_incidents.query.graphql 1.17 KB
#import "ee_else_ce/incidents/graphql/fragments/incident_fields.fragment.graphql"

query getIncidents(
  $projectPath: ID!
  $issueTypes: [IssueType!]
  $sort: IssueSort
  $status: IssuableState
  $firstPageSize: Int
  $lastPageSize: Int
  $prevPageCursor: String = ""
  $nextPageCursor: String = ""
  $searchTerm: String = ""
  $authorUsername: String = ""
  $assigneeUsernames: String = ""
) {
  project(fullPath: $projectPath) {
    issues(
      search: $searchTerm
      types: $issueTypes
      sort: $sort
      state: $status
      authorUsername: $authorUsername
      assigneeUsername: $assigneeUsernames
      first: $firstPageSize
      last: $lastPageSize
      after: $nextPageCursor
      before: $prevPageCursor
    ) {
      nodes {
        iid
        title
        createdAt
        state
        labels {
          nodes {
            title
            color
          }
        }
        assignees {
          nodes {
            name
            username
            avatarUrl
            webUrl
          }
        }
        ...IncidentFields
      }
      pageInfo {
        hasNextPage
        endCursor
        hasPreviousPage
        startCursor
      }
    }
  }
}