title | titleSuffix | description | ms.custom | ms.service | ms.assetid | ms.author | author | monikerRange | ms.topic | ms.date |
---|---|---|---|---|---|---|---|---|---|---|
Add user stories & other work items to help manage your project |
Azure Boards |
Add work items so you can plan and manage a software project using Agile tools, Scrum, or Kanban when connected to a project in Azure Boards or Azure DevOps. |
devx-track-azurecli |
azure-devops-boards |
9474A25E-A9D8-433D-8370-C94624B4ACD6 |
chcomley |
chcomley |
<= azure-devops |
tutorial |
04/01/2022 |
[!INCLUDE version-lt-eq-azure-devops]
You add work items to plan and manage your project. Different types of work items track different types of work—such as user stories or product backlog items, tasks, bugs, or issues. Use work items to describe the work to be done, assign work, track status, and coordinate efforts within your team.
Note
This article shows how to add any type of work item. However, the recommended tool for adding backlog or portfolio items—such as, user stories, product backlog items, features, or epics— is to use the backlog or board to add new items. For more information, see Create your backlog, Define features and epics and Start using your board. To create test cases and link them to user stories, see Add, run, and update inline tests and Create test plans and test suites.
[!INCLUDE temp]
You can start adding work items once you connect to a project.
::: moniker range=">= azure-devops-2019"
Choose a Boards page—such as Work Items, Boards, or Backlogs. Then choose the :::image type="icon" source="../../media/icons/blue-add.png" border="false"::: plus icon and select from the menu of options.
Note
Depending on the process chosen when the project was created—Agile, Basic, Scrum, or CMMI—the types of work items you can create are different. For example, backlog items may be called user stories (Agile), issues (Basic) product backlog items (Scrum), or requirements (CMMI). All four are similar: they describe the customer value to deliver and the work to be performed.
For more information, see About processes and process templates. The Basic process requires Azure DevOps Server 2019.1 or later version.
Enter a title and then save the work item. Before you can change the State from its initial default, you must save it.
You can add tags to any work item to filter backlogs and queries.
Work items you add are automatically scoped to your team's default area path and iteration path. To change the team context, see Switch project or team focus.
That's it!
Create as many work items as you need of the type you need to track the work you want to manage.
::: moniker-end
-
Open Visual Studio 2019, Team Explorer, and then choose Work Items.
If you don't see the Work Items option, you need to connect to a project and not just a repository. From the Connect to a Project dialog. Use CTRL-Shift to select your options and then choose Connect.
-
Choose New Work Item and select the work item type you want.
When you work within Visual Studio 2017 or later version, a browser window opens with the work item form to complete. If you work within Visual Studio 2015 or earlier version, a work item form opens within Visual Studio.
[!INCLUDE temp]
[!INCLUDE temp]
As work progresses, team members can update the state and reassign it as needed. While the workflow states differ for different work item types, they usually follow a progression from New or Active to Completed or Done.
::: moniker range=">= azure-devops-2019"
The following image shows the workflow states for a user story. If you want to discard a work item, change the state to Removed, or you can delete it. For more information, see Move, change, or remove a work item.
::: moniker-end
:::row:::
:::column span="2":::
Typical workflow progression:
- The product owner creates a user story in the New state with the default reason, New user story
- The team updates the status to Active when they decide to complete the work during the sprint
- A user story is moved to Resolved when the team has completed all its associated tasks and unit tests for the story pass.
- A user story is moved to the Closed state when the product owner agrees that the story has been implemented according to the Acceptance Criteria and acceptance tests pass.
Atypical transitions:
- Change the State from Active to New.
- Change the State from Resolved to Active.
- Change the State from Resolved to New.
- Change the State from Closed to Active.
- Change the State from New to Removed.
- Change the State from Removed to New.
:::column-end:::
:::column span="2":::
:::column-end:::
:::row-end:::
Removed work items remain in the data store and can be reactivated by changing the State.
With each update, changes are recorded in the History field, which you can view through the History tab.
To find work items based on their history, see History & auditing.
[!INCLUDE temp]
There's no way to use Visual Studio 2019 to update a work item at this time.
::: moniker range="azure-devops"
Update work item | Show work item details
You can make updates to your work items with the az boards work-item update command. To get started, see Get started with Azure DevOps CLI.
az boards work-item update --id
[--area]
[--assigned-to]
[--description]
[--discussion]
[--fields]
[--iteration]
[--open]
[--org]
[--reason]
[--state]
[--title]
- id: Required. The ID of the work item.
- area: Area the work item is assigned to (for example, Demos).
- assigned-to: Name of the person the work item is assigned-to (for example, fabrikam).
- description: Description of the work item.
- discussion: Comment to add to a discussion in a work item.
- fields: Space separated "field=value" pairs for custom fields you would like to set.
- iteration: Iteration path of the work item (for example, DemosIteration 1).
- open: Open the work item in the default web browser.
- org: Azure DevOps organization URL. You can configure the default organization using
az devops configure -d organization=ORG_URL
. Required if not configured as default or picked up usinggit config
. Example:--org https://dev.azure.com/MyOrganizationName/
. - reason: Reason for the state of the work item. Must be a valid workflow Reason for the work item type.
- state: State of the work item (for example, Active). Must be a valid workflow State for the work item type.
- title: Title of the work item.
The following command updates the title of the bug with the ID 864 and displays the results in the Azure DevOps CLI in table format.
az boards work-item update --id 864 --title "Fix security issues" --output table
ID Type Title Assigned To State
---- ------ ------------------- ------------------- -------
864 Bug Fix security issues contoso@contoso.com New
Use the discussion parameter to add comments to the Discussion control of a work item. The following command adds the specified comment to the bug with the ID 864 and opens the bug in your default web browser, where you can view the comment.
az boards work-item update --id 864 --discussion "This work item is about 50% complete" --open
You can show the details for a work item with the az boards work-item show command. To get started, see Get started with Azure DevOps CLI.
az boards work-item show --id
[--open]
[--org]
- id: Required. The ID of the work item.
- open: Open the work item in the default web browser.
- org: Azure DevOps organization URL. You can configure the default organization using
az devops configure -d organization=ORG_URL
. Required if not configured as default or picked up usinggit config
. Example:--org https://dev.azure.com/MyOrganizationName/
.
The following command shows details for the bug with the ID 864. It opens in your default web browser and also displays the results in the Azure DevOps CLI in table format.
az boards work-item show --id 864 --open --output table
ID Type Title Assigned To State
---- ------ ---------- ------------------- -------
864 Bug fix-issues contoso@contoso.com New
::: moniker-end
[!INCLUDE temp]
When you want to track the progress of a single work item, choose the :::image type="icon" source="../media/icons/follow-icon.png" border="false"::: follow icon. This action signals the system to notify you when changes are made to the work item.
You'll only receive notifications when other project members modify the work item, such as adding to the discussion, changing a field value, or adding an attachment.
Notifications are sent to your preferred email address, which you can change from your user profile.
To stop following changes, choose the :::image type="icon" source="../media/icons/following-icon.png" border="false"::: following icon.
::: moniker range="< azure-devops"
Important
To support the follow feature, you must configure an SMTP server for team members to receive notifications.
::: moniker-end
[!div class="nextstepaction"] Create your backlog or Kanban board quickstart
For descriptions of each field and work item form control, see Work item field index and Work item form controls.
Once you've added several work items, you can use additional features to get notified of changes, create queries, define status and trend charts, plus more.
For more clients that you can use to add work items, see Clients that support tracking work items.