Hard time to get Custom Fields of specific Project

When I request this url :

f'{self.BASE_URL}/tasks/{task_id}?fields=["customFields"]&descendants=false'


it returns  {'errorDescription': "Fields parameter value 'customFields' not allowed", 'error': 'invalid_parameter'}. I could not find a way to get custom fields of specific project or folder. Could someone help me please 😀

0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
1 comment

You don't need to specify in the fields array parameter to have the API returns the Custom Fields of a task, by default, it is already included in the response.

 

The fields parameter array only accepts the following, hence the error.

recurrent Add field to indicate if task is recurrent
attachmentCount Attachment count
responsiblePlaceholderIds List of placeholder responsible IDs
effortAllocation Effort Allocation
billingType Billing type
finance Task Finance fields
customItemTypeId Work Item custom item type Id
0
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

Folllowing List for Post: Hard time to get Custom Fields of specific Project
[this list is visible for admins and agents only]

Top
Didn’t find what you were looking for? Write new post