frontendObjectAttributes.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. {
  2. "attributes": [
  3. {
  4. "name": "title",
  5. "display": "Title",
  6. "dataType": "input",
  7. "isInternal": true,
  8. "dataOption": {
  9. "type": "text",
  10. "maxlength": 200,
  11. "null": false,
  12. "translate": false
  13. },
  14. "screens": {
  15. "create_top": {
  16. "null": false
  17. },
  18. "edit": {}
  19. }
  20. },
  21. {
  22. "name": "customer_id",
  23. "display": "Customer",
  24. "dataType": "user_autocompletion",
  25. "dataOption": {
  26. "relation": "User",
  27. "autocapitalize": false,
  28. "multiple": false,
  29. "guess": true,
  30. "null": false,
  31. "limit": 200,
  32. "placeholder": "Enter Person or Organization/Company",
  33. "minLengt": 2,
  34. "translate": false,
  35. "permission": ["ticket.agent"],
  36. "belongs_to": "customer"
  37. },
  38. "screens": {
  39. "create_top": {
  40. "null": false
  41. },
  42. "edit": {}
  43. },
  44. "isInternal": true
  45. },
  46. {
  47. "name": "organization_id",
  48. "display": "Organization",
  49. "dataType": "autocompletion_ajax_customer_organization",
  50. "isInternal": true,
  51. "dataOption": {
  52. "relation": "Organization",
  53. "autocapitalize": false,
  54. "multiple": false,
  55. "null": true,
  56. "translate": false,
  57. "permission": ["ticket.agent", "ticket.customer"]
  58. },
  59. "screens": {
  60. "create_top": {
  61. "null": false
  62. },
  63. "edit": {}
  64. }
  65. },
  66. {
  67. "name": "type",
  68. "display": "Type",
  69. "dataType": "select",
  70. "isInternal": true,
  71. "dataOption": {
  72. "options": {
  73. "Incident": "Incident",
  74. "Problem": "Problem",
  75. "Request for Change": "Request for Change"
  76. },
  77. "linktemplate": "",
  78. "default": "",
  79. "null": true,
  80. "relation": "",
  81. "nulloption": true,
  82. "maxlength": 255,
  83. "historical_options": {
  84. "Incident": "Incident",
  85. "Problem": "Problem",
  86. "Request for Change": "Request for Change",
  87. "Other": "Other"
  88. }
  89. },
  90. "screens": {
  91. "edit": {
  92. "shown": true,
  93. "required": false
  94. },
  95. "create_middle": {
  96. "shown": false,
  97. "required": false,
  98. "item_class": "column"
  99. }
  100. }
  101. },
  102. {
  103. "name": "group_id",
  104. "display": "Group",
  105. "dataType": "tree_select",
  106. "isInternal": true,
  107. "dataOption": {
  108. "default": "",
  109. "relation": "Group",
  110. "relation_condition": {
  111. "access": "full"
  112. },
  113. "nulloption": true,
  114. "multiple": false,
  115. "null": false,
  116. "translate": false,
  117. "only_shown_if_selectable": true,
  118. "permission": ["ticket.agent", "ticket.customer"],
  119. "maxlength": 255
  120. },
  121. "screens": {
  122. "create_middle": {
  123. "null": false,
  124. "item_class": "column"
  125. },
  126. "edit": {}
  127. }
  128. },
  129. {
  130. "name": "state_id",
  131. "display": "State",
  132. "dataType": "select",
  133. "isInternal": true,
  134. "dataOption": {
  135. "relation": "TicketState",
  136. "nulloption": true,
  137. "multiple": false,
  138. "null": false,
  139. "default": 2,
  140. "translate": true,
  141. "filter": [2, 1, 3, 4, 6, 7],
  142. "maxlength": 255
  143. },
  144. "screens": {
  145. "create_middle": {
  146. "item_class": "column",
  147. "nulloption": false,
  148. "null": true,
  149. "filter": [1, 4],
  150. "default": 1
  151. },
  152. "edit": {
  153. "nulloption": false,
  154. "null": true,
  155. "filter": [2, 4],
  156. "default": 2
  157. }
  158. }
  159. }
  160. ],
  161. "screens": [
  162. {
  163. "name": "create_top",
  164. "attributes": ["title", "organization_id"]
  165. },
  166. {
  167. "name": "edit",
  168. "attributes": ["type", "state_id"]
  169. },
  170. {
  171. "name": "create_middle",
  172. "attributes": ["type", "group_id", "state_id"]
  173. },
  174. {
  175. "name": "create_bottom",
  176. "attributes": []
  177. }
  178. ]
  179. }