Copy or clone work items and more
Azure DevOps Server 2019
There are two types of copy functions you can use:
- Copy or clone a single work item: To duplicate a single work item, use the "Create copy of a work item" feature. Depending on the options you choose, this process can be considered either a copy or a clone.
- Copy a list of work items: To copy a list of work items, multi-select a list of work items and use the "Copy as HTML" or "Copy to clipboard" feature.
Note
The images in your web portal might differ from those in this article due to updates made to Azure DevOps Server. However, unless explicitly mentioned, the basic functionality remains the same.
Prerequisites
Category | Requirements |
---|---|
Permissions | - To view, follow, and edit work items: View work items in this node and Edit work items in this node permissions set to Allow. By default, the Contributors group has these permissions. For more information, see Set work tracking permissions. - To add tags to work items: Project-level Create new tag definition permission set to Allow. By default, the Contributors group has this permission. |
Access levels | - Project member. - To add new tags to work items or to view or follow pull requests: At least Basic access. - To view or follow work items: At least Stakeholder access. For more information, see About access levels. - All project members, including those in the Readers group, can send emails containing work items. |
Note
- Provide Stakeholder access to members who want to contribute to the discussion and review progress. These are typically members who don't contribute to code, but want to view work items, backlogs, boards, and dashboards.
Copy or clone a work item
Copy a work item to create a new work item with a new ID and prepopulated fields from the original. You can modify the fields as needed. A related link to the original work item and any parent link are copied over, but history and attachments are not.
Clone a work item to create an exact copy of an existing work item, including all fields and attachments, but with a new ID. Cloning is useful when no field modifications are needed.
In summary, copy a work item to adjust prepopulated values, and clone a work item to create an exact duplicate.
Note
Some fields might get copied depending on your on-premises version and customizations. If the work item type you clone lacks a state transition rule to clear the Closed By field when the State is New or Active, that field gets copied. Current system out-of-box templates include this rule.
From the web portal, open the work item you want to copy or clone, open the … context menu, and choose Create copy of work item.
Choose the project and work item type if different from the copied work item.
Optionally, check one or more of the boxes:
- Include existing links: To link the copied work item as a Related link type and maintain all other related and external links included in the copied work item.
- Include existing attachments: To include attachments in the copied work item.
Select OK.
In the work item form that opens, update other fields as needed. All work items start in the New state.
Tip
Copied or cloned work items always have a higher ID than the original work items.
Change the work item type
If you have a large number of work items whose type you want to change, use Change work item type. If the Change work item type option isn't available to you, you can export a set of work items using Excel or CSV, copy them to a new list, and reimport them by specifying a different work item type. See Bulk add or modify work items with Excel or Import or update work items in bulk by using CSV files.
Copy a list of work items
You can copy an HTML formatted table of selected items from either a backlog page or query results list. Then, you can send an email of this list using your choice of email client, or paste the list into a Word document, Excel spreadsheet, or other application.
Note
The data copied with Copy as HTML is the same as that copied when you select Email selected work items. If you don't have an SMTP server configured, you can work around this by using Copy as HTML. For on-premises Azure DevOps, all email actions require an SMTP server to be configured.
From the web portal, open a backlog or query results page, and multi-select the work items you want to copy to the clipboard.
Open the … context menu of one of the selected work items, and then choose Copy to clipboard or Copy as HTML.
Paste the contents into your email client
Paste the contents of the clipboard into your email client or other application. To open a linked work item, users need read access to the project or area node for those work items.
The formatted table contains a link to each work item included in your selected results list. A link to a query that opens only those work items selected is also provided.
Copy the URL
Copy the URL from the web browser address or hover over the title and then select the copy-to-clipboard icon.
