Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot retrieve Portfolio custom fields #103

Open
Duartemartins opened this issue Jun 28, 2021 · 1 comment
Open

cannot retrieve Portfolio custom fields #103

Duartemartins opened this issue Jun 28, 2021 · 1 comment

Comments

@Duartemartins
Copy link

Duartemartins commented Jun 28, 2021

If I make the following query: client.portfolios.get_portfolio(portfolio_gid: portfolio_gid, options: { pretty: true }).custom_field_settings

I get:

NoMethodError: undefined method 'new' for #<Asana::Resources::Portfolio:HexString>
The same thing happens when I try to use the .get_items method

Documentation referenced here: https://www.rubydoc.info/github/Asana/ruby-asana/Asana/Resources/Portfolio

@ghost
Copy link

ghost commented Jun 30, 2021

@Duartemartins I met it today. After debugging into the codebase, I found this line causes the error

Collection.new(parse(client.get("/portfolios/#{gid}/custom_field_settings", options: options)), type: self, client: client)
where type must be CustomFieldSetting rather than self

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant