class Asana::Resources::CustomField

Custom Fields store the metadata that is used in order to add user-specified information to tasks in Asana. Be sure to reference the [Custom Fields](/developers/documentation/getting-started/custom-fields) developer documentation for more information about how custom fields relate to various resources in Asana.

Attributes

created_at[R]
enum_options[R]
id[R]
name[R]
precision[R]
type[R]

Public Class Methods

find_by_id(client, id, options: {}) click to toggle source

Returns the complete definition of a custom field's metadata.

id - [Id] Globally unique identifier for the custom field.

options - [Hash] the request I/O options.

# File lib/asana/resources/custom_fields.rb, line 37
def find_by_id(client, id, options: {})

  self.new(parse(client.get("/custom_fields/#{id}", options: options)).first, client: client)
end
find_by_workspace(client, workspace: required("workspace"), options: {}) click to toggle source

Returns a list of the compact representation of all of the custom fields in a workspace.

workspace - [Id] The workspace or organization to find custom field definitions in. options - [Hash] the request I/O options.

# File lib/asana/resources/custom_fields.rb, line 46
def find_by_workspace(client, workspace: required("workspace"), options: {})

  Resource.new(parse(client.get("/workspaces/#{workspace}/custom_fields", options: options)).first, client: client)
end
plural_name() click to toggle source

Returns the plural name of the resource.

# File lib/asana/resources/custom_fields.rb, line 28
def plural_name
  'custom_fields'
end