query getJobs($fullPath: ID!, $after: String, $statuses: [CiJobStatus!]) {
  project(fullPath: $fullPath) {
    id
    __typename
    jobs(after: $after, first: 30, statuses: $statuses) {
      pageInfo {
        endCursor
        hasNextPage
        hasPreviousPage
        startCursor
        __typename
      }
      nodes {
        __typename
        artifacts {
          nodes {
            downloadPath
            fileType
            __typename
          }
        }
        allowFailure
        status
        scheduledAt
        manualJob
        triggered
        createdByTag
        detailedStatus {
          id
          detailsPath
          group
          icon
          label
          text
          tooltip
          action {
            id
            buttonTitle
            icon
            method
            path
            title
          }
        }
        id
        refName
        refPath
        tags
        shortSha
        commitPath
        pipeline {
          id
          path
          user {
            id
            webPath
            avatarUrl
          }
        }
        stage {
          id
          name
        }
        name
        duration
        finishedAt
        coverage
        retryable
        playable
        cancelable
        active
        stuck
        userPermissions {
          readBuild
          readJobArtifacts
          updateBuild
        }
      }
    }
  }
}
