src/commands.py
def asana_team_ids(custom_field_id: str):
    """Fetch all values of the custom field"""
    if not custom_field_id:
        custom_field_id = current_app.config["ASANA_PROJECTS_CUSTOM_FIELDS"][AsanaCustomFieldLabels.TEAM]

    asana_client = AsanaClient(current_app.config["ASANA_WORKSPACE_ID"])
    response = asana_client.client.custom_fields.get_custom_field(custom_field_id)
    for options in response["enum_options"]:
        print(f"{options['gid']}: {options['name']}")
Fetch all values of the custom field
Fetch all values of the custom field
Fetch all values of the custom field
def asana_team_ids(custom_field_id: str):
    if not custom_field_id:
        custom_field_id = current_app.config["ASANA_PROJECTS_CUSTOM_FIELDS"][AsanaCustomFieldLabels.TEAM]
    asana_client = AsanaClient(current_app.config["ASANA_WORKSPACE_ID"])
    response = asana_client.client.custom_fields.get_custom_field(custom_field_id)
    for options in response["enum_options"]:
        print(f"{options['gid']}: {options['name']}")
def asana_team_ids ( custom_field_id : str ) : if not custom_field_id : custom_field_id = current_app . config [ "ASANA_PROJECTS_CUSTOM_FIELDS" ] [ AsanaCustomFieldLabels . TEAM ] asana_client = AsanaClient ( current_app . config [ "ASANA_WORKSPACE_ID" ] ) response = asana_client . client . custom_fields . get_custom_field ( custom_field_id ) for options in response [ "enum_options" ] : print ( f"{options['gid']}: {options['name']}" )
Fetch all values of the custom field
Fetch all values of the custom field
"""Fetch all values of the custom field"""
custom_field_id
str