import { gql } from 'graphql-request';

export const getTicketQuery = gql`
query getTicket($ticketId: ID!) {
  ticket(ticket: { ticketId: $ticketId }) {
    id
    internalId
    title
    note
    number
    createdAt
    updatedAt
    closeAt
    tags
    state {
      id
      name
    }
    owner {
      id
      email
    }
    group {
      id
      name
    }
    priority {
      id
      name
    }
  }
}
`;
