OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/docs/system-admin-guide/custom-fields/README.md

81 lines
4.7 KiB

---
sidebar_navigation:
title: Custom fields
priority: 800
description: Manage custom fields in OpenProject.
robots: index, follow
keywords: manage custom fields
---
# Manage custom fields
You can **create additional custom fields for different sections**, e.g. work packages, projects, users or groups in OpenProject.
4 years ago
Custom fields enable to configure your OpenProject exactly to your needs, i.e. to adapt work package forms to your company specific requirements.
## Add a new custom field
To **create a new custom field** navigate to -> *Administration* -> *Custom fields* and select the section for which you will create a new custom field, e.g. for work packages.
You will see the list of all the custom fields that have been created so far, divided by the section on the different tabs for which they were created.
If none have been created so far, click on the link **Create a new custom field** in the respective section, e.g. on the tab for work packages.
![Sys-admin-custom-fields](Sys-admin-custom-fields.png)
Depending on the module, for which the new custom field is being created, slightly different options may be offered. This is an example of a new custom field for a work package:
1. Custom field **name**, which will appear as the attribute name on the work package form.
2. **Choose a Format** of the custom field, e.g. text, list, date, boolean. You can choose between the following formats for custom fields:
![custom fields format](image-20200122112806127.png)
3. Specify the **minimal and maximal length**. If a 0 is chosen, no restriction will be imposed on the length of the custom field.
4. **Regular expression** specifying which values are allowed for the custom field.
5. Set if the new custom field should be a **required** field.
6. Specify if the new custom field should be **used for all projects**. This means the custom field will be active for all projects and does not need to be activated separately per project.
7. Specify if the new custom field should be **used as a filter for work packages**. See [here](../../user-guide/work-packages/work-package-table-configuration/#filter-work-packages) how to filter work packages.
8. Specify if the new custom field should be **searchable** via the global search.
9. **Save** the new custom field.
![Sys-admin-create-custom-field](Sys-admin-create-custom-field.png)
## Assigning the custom field to a work package type and project
<div class="alert alert-info" role="alert">
**Note**: Custom fields need to be activated per work package type and per project. Work package custom fields are only visible when two conditions are met:
1. Custom field has been added to the work package type (form configuration).
2. Custom field is activated for the project.
</div>
1. [Assign a custom field to a work package type](../manage-work-packages/work-package-types/#work-package-form-configuration) (Form configuration). You can do this directly via the link in the custom field overview.
![Sys-admin-add-custom-field](Sys-admin-add-custom-field.png)
2. Activate the custom field for a project in the [project settings](../../user-guide/projects/project-settings/custom-fields/). This is not relevant if the setting **For all projects** has been configured for the custom field.
With these additional settings, you have absolute freedom which custom fields are relevant for your projects and types. You can customize only those types that are relevant and create a whole set of custom attributes for your work packages.
## Edit or remove a custom field
1. To **edit an existing custom field** select the appropriate tab and click on the custom field name.
2. To **delete** a custom field, click on the delete icon in the list of the custom field.
![Sys-admin-edit-custom-fields](Sys-admin-edit-custom-fields.png)
## Create a multi-select custom field (Premium feature)
For work package custom fields of type **List** and **User** you may also select **multi-select custom fields** to select more than one value at once.
Please note that this feature is only available in the [Enterprise Edition](https://www.openproject.org/enterprise-edition/) and [Cloud Edition](https://www.openproject.org/hosting/).
To create a multi-select custom field follow the same steps as you would when [creating a standard custom field](#add-a-new-custom-field). Select format *List* or format *User* and check the option *Allow multi-select*.
![Sys-admin-multi-select-custom-field](Sys-admin-multi-select-custom-field.png)
When using multi-select custom fields, you can add as many options as required. The cross icon next to an option will remove it from the selection. The check mark will save your changes.
4 years ago
![Sys-admin-add-multi-select-custom-fields](Sys-admin-add-multi-select-custom-fields.png)