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

Project Templates missing #268

Open
adshrc opened this issue Jul 20, 2022 · 1 comment
Open

Project Templates missing #268

adshrc opened this issue Jul 20, 2022 · 1 comment

Comments

@adshrc
Copy link

adshrc commented Jul 20, 2022

Hi,

i just realized that in the current version (1.0.0) ProjectTemplates is not exported properly. It's not possible to access it through the client, but there is a project_templates.js. Looks like someone forgot to add it to the index.js file.

Currently it is not usable.

@adshrc
Copy link
Author

adshrc commented Jul 20, 2022

In case somebody is searching for a workaround:

const path = "/project_templates/{project_template_gid}/instantiateProject".replace("{project_template_gid}", projectTemplateGid);

asanaClient.dispatcher.post(path, data)
          .then((projectRes: any) => {
            return resolve(projectRes);
          })
          .catch((err: any) => {
            console.log(err.value.errors);
            reject(err);
          })

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