Rediger

Del via


Add and manage fields (Inheritance process)

Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019

You can add a custom field to support tracking additional data requirements or modify select attributes of an inherited icon inherited field. For example, you can add a custom field or change the label that appears in the work item form for an inherited field.

Important

The Inheritance process model is available for projects configured to support it. If you’re using an older collection, check the process model compatibility. If your on-premises collection is configured to use the on-premises XML process model, you can only use that process model to customize the work tracking experience. For more information, see Choose the process model for your project collection.

For a list of all fields defined for your organization—which includes all fields defined for system and inherited processes—see View work item fields and attributes.

Once you've added a custom field, you can create queries, charts, or Analytics views and Power BI reports to track data related to it.

Prerequisites

For guidance on tailoring Azure Boards to align with your specific business requirements, see About configuring and customizing Azure Boards.

  • Organization requirement: Ensure you have an organization in Azure DevOps.

  • Permissions:

    • Be a member of the Project Collection Administrators group.
    • Have collection-level permissions such as Create process, Delete process, Edit process, or Delete a field from organization set to Allow.
    • These permissions allow you to modify processes and fields within your organization.
  • Project process model requirement:

  • Permissions:

    • Be a member of the Project Collection Administrators group.
    • Have collection-level permissions such as Create process, Delete process, Edit process, or Delete a field from organization set to Allow.
    • These permissions allow you to modify processes and fields within your organization.

Open organization process settings

  1. Sign in to your organization (https://dev.azure.com/{yourorganization}).

  2. Select Organization settings.

    Screenshot showing Organization settings button for selection.

  3. Select Process.

    Screenshot showing highlighted Process button for selection.

  1. Sign in to your collection (https://dev.azure.com/{Your_Collection}).

  2. Select Collection Settings or Admin settings.

  3. Select Process.

    Screenshot showing highlighted Process button in Collection settings.

Note

When you customize an inherited process, any projects using that process automatically reflect the customizations. To ensure a smooth transition, we recommend creating a test process and project, which allows you to test your customizations before you implement them organization-wide. For more information, see Create and manage inherited processes.

Custom field names

When you add a custom field to an inherited process, Azure DevOps assigns a reference name prefixed with Custom and then then name of the field with spaces removed. For example, you add a field named DevOps Triage, the reference name is Custom.DevOpsTriage. No spaces are allowed within the reference name.

Add a custom field

You can add fields and specify the group and page where they should appear. Also, once you've added a field, you can drag-and-drop it within a page to move its placement within the form. If you have several fields you want to add to a custom page or group, then add those pages or groups first and then add your fields.

Note

Each process can define up to 1024 fields, including system inherited fields. You can only add fields within a page on a form. You can't add a field to the gray area within the form where the Assigned To, State, and Reason fields are located.

  1. From the Process page of the selected inherited process, choose the work item type you want to add the custom field to.

    Here we choose the Bug WIT. Note the breadcrumb links that allow you to move back to All Processes and MyAgile process page.

    All Processes-Process-WIT breadcrumb links

    If the New field and other options are disabled, you don't have the necessary permissions to edit the process. See Set permissions and access for work tracking, Customize an inherited process.

  2. With the WIT selected, choose the New field.

    Process Work Item Types page, Add a field to a WIT

  3. Name the field and select the field type from one of the supported data types. Optionally, add a description.

    Note

    You must specify a field name that is unique within the organization. A custom field defined for one process cannot be the same as the name defined for another process. For more information on field names, see What is a field? How are field names used?

    Here we add an Integer field labeled Customer Ticket.

    Add a field to Bug, choose field type

  4. (Optional) On the Options tab, indicate if the field is required and specify a default value. Or leave the values blank. By making a field Required, users must specify a value for the field to save the work item. When you create a work item as well as every time someone opens a work item and the field is empty, the default value is set.

    Add a field to Use story, specify options

  5. (Optional) On the Layout tab, you can enter a different form label than the name of the field. Also, you can choose the page and group where the field appears on the form.

    Here, we add the Customer Ticket field to a new group labeled Customer focus.

    Add a field to Use story, specify layout

    Note

    While you can change the form label, you must use the field name when you are adding fields to cards (Board, Taskboard) or creating queries based on the field.

  6. Choose Add field to complete adding the field. If you don't specify its layout location, the system adds it to the first group of fields on the form.

  7. When you've completed making all your changes, open a work item of the type you've customized.

    Here, we show the Customer Ticket field has been added to the Status group. You may need to refresh your browser to see the changes.

    Bug form, Customer Ticket field added to Customer focus group

Add a picklist

Work tracking, process, and project limits

You can add a new field and define a pick list or customize the pick list of an inherited field.

Note

Each organization or collection can define up to 2048 picklists. Each picklist can contain up to 2048 items. Picklist items must be 256 or fewer characters. If you want to add dependent picklists, see Cascading lists.

  1. Start by choosing add new field icon New field, then specify the picklist type—integer or string—and then add the items to appear in the picklist. You can add an item and then press Enter to add another item.

    Add a field to Bug dialog, Add a custom picklist.

    To delete an item in the list, highlight the item and then click the Delete icon delete icon.

    To modify the pick list of an inherited field, choose Edit to edit the field. On the Definition tab, you can choose to Add value.

    Edit field Priority in User STory dialog, Definition tab.

  2. (Optional) Choose the Options tab to define the field as required, specify a default, or allow users to enter their own values.

    Allow values in a custom picklist

  3. (Optional) See previous step 5 to specify where you want the field to appear on the form (Layout tab).

Add an Identity field

Use an Identity-based field to add a field similar to the Assigned To field. Identity-based fields act in the same way as the Assigned To field, providing a search and identity picker function. When your organization manages users with Microsoft Entra ID or Active Directory, the system synchronizes Identity-based fields with the names defined in these directories.

  1. Start by choosing add new field icon New field, then the field name, Identity type, and optionally a description.

    Add a field to Bug dialog, Definition tab, Add an Identity field.

  2. (Optional) See previous step 5 to specify where you want the field to appear on the form (Layout tab).

Add a rich-text, HTML field

  1. As before, choose the WIT you want to add the field to and then choose the add new field icon New field.

  2. Choose Text (multiple lines) as the type. Here we label the field as Customer request to capture customer comments for product feature requests.

    Process Work Item Types page, Add a rich-text field to the Bug form

  3. The field is added to the first column under all system-defined rich-text fields, but before the Discussion control.

    Bug form, Customer request field added to first column in form

Add a checkbox field

  1. As before, choose the WIT you want to add the field to and then choose add icon New field.

  2. Choose Boolean as the type, and give it a label. Here we label the field as Triaged to track the triage state of the bug.

    Add a boolean field
  3. (Optional) Open the Options tab and specify if the field should be required.

    Set options for boolean field

  4. By default, the field is added to the last group defined in the second column. Open the Layout tab to drag and drop the field to another group on the form.

    Note

    The field appears as a checkbox in the work item form. Check the box to indicate a True value. If you display the field on the board or Taskboard, then the field values of True and False display (not a checkbox).

Add an existing field to another WIT

Existing fields correspond to any inherited field and custom field defined within the collection. Once you've added a custom field to one WIT, you can add it to others from the form menu. Or, you can add a field defined for one process to a work item type in another process. Open the work item type and choose the existing field.

To look up descriptions of any system-defined work item field, see the Work item field index.

Here we add the Customer Ticket field to the User Story WIT.

Add existing field to a User Story

Optionally, specify the Required/Default values and placement within the form for the field.

Relabel a field

Renaming a field or changing the field type aren't supported actions. However, from the Layout tab you can change the label that appears on the work item form. When selecting the field in a query, you need to select the field name and not the field label.

Here, we relabel the Customer Ticket field to Ticket Number.

Layout tab, Relabel a field

Modify Description help text

Description help text displays when users hover over a field in the work item form. You can define different help text for the same fields for different work item types. Modification is supported for both custom fields and inherited fields. Note that the implementation differs based on the field type.

  • For inherited fields: Description help text can be defined differently for each work item type and process.
  • For custom fields: Description help text appears the same for the field across all work item types and all processes.

Note

Certain features require installation of Azure DevOps Server 2020.1 update. For more information, see Azure DevOps Server 2020 Update 1 RC1 Release Notes, Boards.

Description help text displays when users hover over a field in the work item form. You can only modify the description help text on a custom field. That help text propagates to all work item types and all processes. You can't customize the help text by process or work item type.

To modify the Description help text, choose the work item type you want to modify, choose Edit for the field and choose the Definition tab. The modified value only affects that field in the process and for that work item type.

Here we modify the Story Points field for User Story.

Edit field dialog, User Story, Story Points field.

Here we modify the custom Published field for User Story.

Edit field dialog, User Story, Published custom field.

Show, hide, or remove a field

You can choose to show or hide any field or custom control from appearing on a form. If you want to reinstate a field onto the form later, you can un-hide These actions differ from the Delete option, which deletes the field from the organization.

You can choose to show or hide an inherited field or a custom control from appearing on a form. For custom fields, you can remove it from the form. If you want to reinstate it by choosing Show on layout. These actions differ from the Delete option, which deletes the field from the organization.

Note

Data defined for an inherited field, even if you hide it, is maintained in the data store and work item history. You can view a record of it by viewing the history tab for a work item.

When you remove a custom field from the layout, it is maintained in the data store but stripped from the history. You can view it from the query results. If you add the field back to the form, then the history for it is restored.To delete a custom field from a project collection, see Delete a field.

Hide a field or custom control

Hide an inherited field or custom control

  1. Open the context menu for the field or control and choose Hide from layout.

    Bug layout, inherited field, open context menu, choose Hide from layout

  2. To add a hidden field or control to the form, choose Show on layout.

Remove a custom field from a form

  1. Choose Remove from the context menu of the field you want to remove.

    Remove field from bug work item type

  2. Confirm that you want to remove the field.

    Confirm to remove field from the bug work item form
  3. To add a custom field that's been removed, choose New field and select Use an existing field.

Revert field to preset defaults

You may discard changes you made to an inherited field. From the Layout page of the modified work item type, choose the Revert option for the field.

Layout page, Field context menu, choose Revert option

Delete a custom field

With the Inheritance process model, you can only delete custom fields. You can't delete fields defined for system default processes.

Deleting a field deletes all data associated with that field, including historical values. Once deleted, you can only restore the field and recover the data using the Fields - Update REST API.

Note

We recommend that you only delete fields that are not in use. You can determine fields that aren't in use by exercising the witadmin listfields command. To learn how, see Manage work item fields (witadmin).
Or, if Analytics is enabled for your organization or collection, you can query Analytics for where a custom field is in use with the following syntax:

https://analytics.dev.azure.com/{OrganizationName}/_odata/v4.0-preview/WorkItemTypeFields?$filter=FieldReferenceName eq {CustomFieldReferenceName}&$select=WorkItemType
  1. You delete the field from the All processes>Fields page.

    Delete field

    To delete fields, you must be a member of the Project Collection Administrators group or be granted explicit permissions to Delete field from account.

  2. To complete the delete operation, you must type the name of the field as shown.

    Delete field, confirmation dialog

Note

Review changes made to an inherited process through the audit log. For more information, see Access, export, and filter audit logs.

If you're working with test plans or test cases, see these articles: