class Asana::Resources::CustomFieldSetting
Custom fields are applied to a particular project or portfolio with the Custom Field Settings resource. This resource both represents the many-to-many join of the Custom Field and Project
or Portfolio
as well as stores information that is relevant to that particular pairing; for instance, the `is_important` property determines some possible application-specific handling of that custom field and parent.
Attributes
Public Class Methods
Returns a list of all of the custom fields settings on a portfolio.
portfolio - [Gid] The ID of the portfolio for which to list custom field settings per_page - [Integer] the number of records to fetch per page. options - [Hash] the request I/O options.
# File lib/asana/resources/custom_field_settings.rb, line 49 def find_by_portfolio(client, portfolio: required("portfolio"), per_page: 20, options: {}) params = { limit: per_page }.reject { |_,v| v.nil? || Array(v).empty? } Collection.new(parse(client.get("/portfolios/#{portfolio}/custom_field_settings", params: params, options: options)), type: Resource, client: client) end
Returns a list of all of the custom fields settings on a project.
project - [Gid] The ID of the project for which to list custom field settings per_page - [Integer] the number of records to fetch per page. options - [Hash] the request I/O options.
# File lib/asana/resources/custom_field_settings.rb, line 39 def find_by_project(client, project: required("project"), per_page: 20, options: {}) params = { limit: per_page }.reject { |_,v| v.nil? || Array(v).empty? } Collection.new(parse(client.get("/projects/#{project}/custom_field_settings", params: params, options: options)), type: Resource, client: client) end
Returns the plural name of the resource.
# File lib/asana/resources/custom_field_settings.rb, line 30 def plural_name 'custom_field_settings' end