# Custom fields specific to a project, not workspace

**URL:** <https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957>\
**Category:** API & Developers\
**Tags:** custom-fields, projects\
**Created:** [20 April 2022 09:38 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957 "2022-04-20T09:38:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goran\_Radola](https://luna1.co/8d76cd.png) [@Goran\_Radola](https://forum.asana.com/u/Goran_Radola)\
**Post date:** [20 April 2022 09:38 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957/1 "2022-04-20T09:38:13Z")

</div>

I’m trying to create projects via the API and each project has to have some custom fields.

From what I read in the docs, the way to do this is to

1. create custom fields in the workspace and then
2. assign the custom fields using custom\_fields\_settings to the project.

Is there a way to create custom fields which are not in the workspace, but rather exist only for a single project?

The reason behind me wanting to do this is that custom fields with the **same name** will be used in more than one project, but their **enum values** need to be different.

I believe there is a way to do this, perhaps undocumented, because if I create a project using CSV import in the GUI, the custom fields are not visible in the workspace, but are present in the project when accessed via the API.

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [20 April 2022 22:34 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957/2 "2022-04-20T22:34:16Z")

</div>

Hi @Goran_Radola and welcome to the forum,

I think you’re right that there’s not a way to create a local project-specific custom field via the API.

I haven’t used it but there is an `is_global_to_workspace` property on a custom field; you might want to play around with setting that and see if that helps you.

---

<div class="post-metadata">

**Author:** ![Goran\_Radola](https://luna1.co/8d76cd.png) [@Goran\_Radola](https://forum.asana.com/u/Goran_Radola)\
**Post date:** [27 April 2022 21:32 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957/4 "2022-04-27T21:32:33Z")

</div>

Hi! Thanks for the reply!

It gave me something to search the forum with and I’ve found the solution in these two topics:

- [Updated Custom Fields](https://forum.asana.com/t/updated-custom-fields/55153)
- [API create custom field in a project and not on workspace level](https://forum.asana.com/t/api-create-custom-field-in-a-project-and-not-on-workspace-level/134871)

The gist is, you need to send a POST to addCustomFieldSetting just like in the docs, but instead of setting `custom_field` to an existing GID, you pass a JSON definition of a custom field.

In my case, when using the Node API, it looks something like this:

```auto
client.projects.addCustomFieldSettingForProject(
  project.gid, { 
    custom_field: { 
      name: 'Test Custom Field', 
      type: 'enum', 
      enum_options: [{ name: 'first' }, { name: 'second' }], 
      "resource_subtype": "enum"
    },
  is_important: true 
});

```

Afterwards, the added custom field is visible in the project’s custom\_field\_settings.

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [28 April 2022 06:22 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957/5 "2022-04-28T06:22:15Z")

</div>

Ah, excellent, thanks, @Goran_Radola!

---

<div class="post-metadata">

**Author:** ![Fabio\_Fioramonti](https://luna1.co/8d76cd.png) [@Fabio\_Fioramonti](https://forum.asana.com/u/Fabio_Fioramonti)\
**Post date:** [18 July 2023 15:59 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957/6 "2023-07-18T15:59:09Z")

</div>

Hi, is this solution still working? I’m trying to do the same, but it same that there is no “addCustomFieldSettingForProject” on client.projects.

This is my code:

```auto
  const client = asana.Client.create().useAccessToken(params.accessToken);

  const { data } = await client.projects.addCustomFieldSettingForProject(params.project, {
    custom_field: {
      name: 'test',
      type: 'text',
    },
    is_important: true
  });

```

But I receive this error: TS2339: Property ‘addCustomFieldSettingForProject’ does not exist on type ‘Projects’.

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [18 July 2023 19:39 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957/7 "2023-07-18T19:39:35Z")

</div>

Hi @Fabio_Fioramonti,

Which client library are you using?

---

<div class="post-metadata">

**Author:** ![Fabio\_Fioramonti](https://luna1.co/8d76cd.png) [@Fabio\_Fioramonti](https://forum.asana.com/u/Fabio_Fioramonti)\
**Post date:** [18 July 2023 19:55 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957/9 "2023-07-18T19:55:02Z")

</div>

Hi @Phil_Seeman , thank you for your reply, I’m using version 1.0.2 of the nodejs module took from [npm](https://www.npmjs.com/package/asana)

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [18 July 2023 20:03 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957/10 "2023-07-18T20:03:45Z")

</div>

Hmm, sure seems like it should be in there, from looking at the Node client source code.

@Bastien_Siebman I think you use the Node library? Any ideas?

---

<div class="post-metadata">

**Author:** ![Fabio\_Fioramonti](https://luna1.co/8d76cd.png) [@Fabio\_Fioramonti](https://forum.asana.com/u/Fabio_Fioramonti)\
**Post date:** [19 July 2023 08:57 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957/11 "2023-07-19T08:57:27Z")

</div>

I think it’s an issue with typescript and types because using `@ts-ignore` it works!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 18:55 UTC](https://forum.asana.com/t/custom-fields-specific-to-a-project-not-workspace/161957/12 "2025-05-30T18:55:11Z")

</div>

Closed on 30 May 2025 18:55 UTC


