ticketsByOverview.graphql 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. query ticketsByOverview(
  2. $overviewId: ID!
  3. $orderBy: String
  4. $orderDirection: EnumOrderDirection
  5. $cursor: String
  6. $showPriority: Boolean!
  7. $showUpdatedBy: Boolean!
  8. $pageSize: Int = 10
  9. $withObjectAttributes: Boolean = false
  10. ) {
  11. ticketsByOverview(
  12. overviewId: $overviewId
  13. orderBy: $orderBy
  14. orderDirection: $orderDirection
  15. after: $cursor
  16. first: $pageSize
  17. ) {
  18. totalCount
  19. edges {
  20. node {
  21. id
  22. internalId
  23. number
  24. title
  25. createdAt
  26. updatedAt
  27. updatedBy @include(if: $showUpdatedBy) {
  28. id
  29. fullname
  30. }
  31. customer {
  32. id
  33. firstname
  34. lastname
  35. fullname
  36. }
  37. organization {
  38. id
  39. name
  40. }
  41. state {
  42. id
  43. name
  44. stateType {
  45. name
  46. }
  47. }
  48. group {
  49. id
  50. name
  51. }
  52. priority @include(if: $showPriority) {
  53. id
  54. name
  55. uiColor
  56. defaultCreate
  57. }
  58. objectAttributeValues @include(if: $withObjectAttributes) {
  59. ...objectAttributeValues
  60. }
  61. stateColorCode
  62. }
  63. cursor
  64. }
  65. pageInfo {
  66. endCursor
  67. hasNextPage
  68. }
  69. }
  70. }