You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Creates a new custom field in a workspace. Every custom field is required to be created in a specific workspace, and this workspace cannot be changed once set.
14
+
15
+
A custom field's `name` must be unique within a workspace and not conflict with names of existing task properties such as 'Due Date' or 'Assignee'. A custom field's `type` must be one of 'text', 'enum', or 'number'.
16
+
17
+
Returns the full record of the newly created custom field.
18
+
19
+
Parameters
20
+
----------
21
+
[data] : {Object} Data for the request
22
+
- workspace : {Gid} The workspace to create a custom field in.
23
+
- resource_subtype : {String} The type of the custom field. Must be one of the given values.
24
+
- [type] : {String} **Deprecated: New integrations should prefer the `resource_subtype` parameter.**
25
+
- name : {String} The name of the custom field.
26
+
- [description] : {String} The description of the custom field.
27
+
- [precision] : {Integer} The number of decimal places for the numerical values. Required if the custom field is of type 'number'.
28
+
- [enum_options] : {String} The discrete values the custom field can assume. Required if the custom field is of type 'enum'.
"""A specific, existing custom field can be updated by making a PUT request on the URL for that custom field. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged
56
+
57
+
When using this method, it is best to specify only those fields you wish to change, or else you may overwrite changes made by another user since you last retrieved the custom field.
58
+
59
+
An enum custom field's `enum_options` cannot be updated with this endpoint. Instead see "Work With Enum Options" for information on how to update `enum_options`.
60
+
61
+
Locked custom fields can only be updated by the user who locked the field.
62
+
63
+
Returns the complete updated custom field record.
64
+
65
+
Parameters
66
+
----------
67
+
custom_field : {Gid} Globally unique identifier for the custom field.
"""Creates an enum option and adds it to this custom field's list of enum options. A custom field can have at most 50 enum options (including disabled options). By default new enum options are inserted at the end of a custom field's list.
89
+
90
+
Locked custom fields can only have enum options added by the user who locked the field.
91
+
92
+
Returns the full record of the newly created enum option.
93
+
94
+
Parameters
95
+
----------
96
+
custom_field : {Gid} Globally unique identifier for the custom field.
97
+
[data] : {Object} Data for the request
98
+
- name : {String} The name of the enum option.
99
+
- [color] : {String} The color of the enum option. Defaults to 'none'.
100
+
- [insert_before] : {Gid} An existing enum option within this custom field before which the new enum option should be inserted. Cannot be provided together with after_enum_option.
101
+
- [insert_after] : {Gid} An existing enum option within this custom field after which the new enum option should be inserted. Cannot be provided together with before_enum_option.
"""Moves a particular enum option to be either before or after another specified enum option in the custom field.
126
+
127
+
Locked custom fields can only be reordered by the user who locked the field.
128
+
129
+
Parameters
130
+
----------
131
+
custom_field : {Gid} Globally unique identifier for the custom field.
132
+
[data] : {Object} Data for the request
133
+
- enum_option : {Gid} The ID of the enum option to relocate.
134
+
- name : {String} The name of the enum option.
135
+
- [color] : {String} The color of the enum option. Defaults to 'none'.
136
+
- [before_enum_option] : {Gid} An existing enum option within this custom field before which the new enum option should be inserted. Cannot be provided together with after_enum_option.
137
+
- [after_enum_option] : {Gid} An existing enum option within this custom field after which the new enum option should be inserted. Cannot be provided together with before_enum_option.
:param str attachment_gid: (required) Globally unique identifier for the attachment.
10
+
:param Object params: Parameters for the request
11
+
:param **options
12
+
- opt_fields {list[str]}: Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options.
13
+
- opt_pretty {bool}: Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.
:param str attachment_gid: (required) Globally unique identifier for the attachment.
24
+
:param Object params: Parameters for the request
25
+
:param **options
26
+
- opt_fields {list[str]}: Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options.
27
+
- opt_pretty {bool}: Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.
:param str task_gid: (required) The task to operate on.
38
+
:param Object params: Parameters for the request
39
+
:param **options
40
+
- offset {str}: Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.'
41
+
- limit {int}: Results per page. The number of objects to return per page. The value must be between 1 and 100.
42
+
- opt_fields {list[str]}: Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options.
43
+
- opt_pretty {bool}: Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.
0 commit comments