> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.teamwork.core.ListProjects

- Component: `appmixer.teamwork.core.ListProjects`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.teamwork 1.1.0](https://connectors.appmixer.com/connector/appmixer.teamwork/1.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.teamwork/1.1.0/component/appmixer.teamwork.core.ListProjects>

List projects in Teamwork.com

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Search Term (`searchTerm`) | text | - |
| Companies (`companyIds`) | multiselect | - |
| Include Tentative Projects (`includeTentativeProjects`) | toggle | - |
| Custom Fields (`customfields`) | expression | - |

## Output ports

### Port `projects`

| Field | Type | Description |
| --- | --- | --- |
| Projects (`projects`) | array | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.teamwork.core.ListProjects",
  "auth": {
    "service": "appmixer:teamwork"
  },
  "author": "hugh.marron@teamwork.com",
  "description": "List projects in Teamwork.com",
  "private": false,
  "version": "1.0.0",
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "searchTerm": {
            "type": "string"
          },
          "companyIds": {
            "type": "array"
          },
          "includeTentativeProjects": {
            "type": "boolean"
          },
          "customfields": {
            "type": "object"
          }
        }
      },
      "inspector": {
        "inputs": {
          "searchTerm": {
            "index": 0,
            "type": "text",
            "label": "Search Term"
          },
          "companyIds": {
            "index": 1,
            "type": "multiselect",
            "label": "Companies",
            "min": 0,
            "source": {
              "url": "/component/appmixer/teamwork/core/ListCompanies?outPort=companies",
              "data": {
                "transform": "ListCompanies#toInspector"
              }
            }
          },
          "includeTentativeProjects": {
            "index": 2,
            "type": "toggle",
            "label": "Include Tentative Projects",
            "defaultValue": false
          },
          "customfields": {
            "type": "expression",
            "label": "Custom Fields",
            "index": 3,
            "levels": [
              "AND"
            ],
            "fields": {
              "name": {
                "type": "select",
                "label": "Field",
                "index": 1,
                "source": {
                  "url": "/component/appmixer/teamwork/core/ListCustomFields?outPort=customfields",
                  "data": {
                    "messages": {
                      "in/entity": "project",
                      "in/onlyTextAndNumber": true
                    },
                    "transform": "./ListCustomFields#toInspector"
                  }
                }
              },
              "value": {
                "type": "text",
                "label": "Value",
                "index": 2
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "projects",
      "options": [
        {
          "label": "Projects",
          "value": "projects",
          "schema": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "number",
                  "title": "ID"
                },
                "name": {
                  "type": "string",
                  "title": "Name"
                },
                "description": {
                  "type": "string",
                  "title": "Description"
                },
                "status": {
                  "type": "string",
                  "title": "Status"
                }
              }
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
