ticketsByOverview.graphql 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. id
  46. name
  47. }
  48. }
  49. group {
  50. id
  51. name
  52. }
  53. priority @include(if: $showPriority) {
  54. id
  55. name
  56. uiColor
  57. defaultCreate
  58. }
  59. objectAttributeValues @include(if: $withObjectAttributes) {
  60. ...objectAttributeValues
  61. }
  62. stateColorCode
  63. }
  64. cursor
  65. }
  66. pageInfo {
  67. endCursor
  68. hasNextPage
  69. }
  70. }
  71. }