Skip to content

Latest commit

 

History

History
354 lines (226 loc) · 16.6 KB

add-work-items.md

File metadata and controls

354 lines (226 loc) · 16.6 KB

title: Add, update, & follow stories, issues, bugs, & other work items titleSuffix: Azure Boards description: Add work items to plan and manage a software project using Agile tools, Scrum, or Kanban when connected to a project in Azure Boards or TFS
ms.custom: seodec18 ms.technology: devops-agile ms.prod: devops ms.assetid: 9474A25E-A9D8-433D-8370-C94624B4ACD6
ms.manager: mijacobs ms.author: kaelli author: KathrynEE monikerRange: '>= tfs-2013' ms.topic: quickstart ms.date: 02/14/2019

Add and update a work item

[!INCLUDE temp]

You add work items to plan and manage your project. You use different types of work items to track different types of work—such as user stories or product backlog items, tasks, bugs, or issues. You can describe the work to be done, assign work, track status, and coordinate efforts within your team.

For additional clients that you can use, see Best tools for adding, updating, and linking work items.

[!INCLUDE temp]

Add a work item

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  plus icon and select from the menu of options.

[!div class="mx-imgBorder"] Work, add artifact

Note

Depending on the process chosen when the project was created—Agile, Basic, Scrum, or CMMI—the types of work items you can create will differ. 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 an overview of all default processes, see Choose a process. Note that 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.

Agile process, User story work item form

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

::: moniker range=">= tfs-2017 <= tfs-2018"

  1. From Work, choose the work item type from the New Work Item list of options. Here, we choose to create a User Story.

    Add a work item

    [!NOTE]
    Depending on the process chosen when the project was created—Agile, Scrum, or CMMI—the types of work items you can create will differ. For example, backlog items may be called user stories (Agile), product backlog items (Scrum), or requirements (CMMI). All three are similar: they describe the customer value to deliver and the work to be performed.

    For an overview of all three processes, see Choose a process.

    Choose the pin icon pin icon to have it show up within Work drop down menu.

  2. Enter a title and then save the work item. Before you can change the State from its initial default, you must save it.

    Agile process, User story work item form

    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.

::: moniker-end

::: moniker range="<= tfs-2015"

  1. From a web browser, connect to the project that you want to work in. For example, the Fabrikam, Inc. team navigates to http://fabrikamprime:8080/tfs/DefaultCollection/Fabrikam%20Fiber%20Website/.

  2. From a team home page, you can choose the type of work item you want to create.

    Home page -  create work items

    Work items you add are automatically scoped to your team's area and iteration paths. To change the team context, see Switch project or team focus

  3. Enter a title and then save the work item. Before you change the default State, you must save it.

    Product backlog item work item form

    You can add tags to any work item to filter backlogs and queries.

::: moniker-end

  1. Open Visual Studio 2019, Team Explorer, and then choose Work Items.

    [!div class="mx-imgBorder"]
    Visual Studio, Team Explorer, 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.

    [!div class="mx-imgBorder"]
    Connect to a Project dialog, connect to a Project and Git repository

  2. Choose New Work Item and select the work item type you want.

    [!div class="mx-imgBorder"]
    Work Items, Add User Story

    If you work within Visual Studio 2017 or later version, a browser window will open with the work item form to fill out. If you work within Visual Studio 2015 or earlier version, a work item form opens within Visual Studio.

[!INCLUDE temp]

[!INCLUDE temp]


Update work items as work progresses

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=">= tfs-2017"

[!div class="mx-imgBorder"]
Update the State of a User Story
::: moniker-end

::: moniker range="<= tfs-2015" Note that the location of the State field may differ depending on the work item type you are updating.

[!div class="mx-imgBorder"]
Update the State of an Issue
::: moniker-end

::: moniker range=">= azure-devops-2019"

The following image shows the work flow states for a user story. If you want to discard a work item, change the state to Removed, or you can delete it. For details, see Move, change, or remove a work item.

::: moniker-end

::: moniker range="= tfs-2018"

The following image shows the work flow states for a user story. If you want to discard a work item, change the state to Removed, or you can delete it. For details, see Remove or delete a work item.

::: moniker-end

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.
User story workflow, Agile process

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.

::: moniker range=">= tfs-2017" View change history
::: moniker-end

::: moniker range=">= tfs-2013 <= tfs-2015" View change history
::: moniker-end

To find work items based on their history, see History & auditing.

[!INCLUDE temp]

There is 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] 

Parameters

  • id: Required. The ID of the work item.

Optional parameters

  • 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 using git 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.

Example

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

You can use the discussion parameter to add comments to the Discussion section 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

Show details for a work item

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] 

Parameters

  • 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 using git config. Example: --org https://dev.azure.com/MyOrganizationName/.

Example

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]


::: moniker range=">= tfs-2017"

Follow a work item

When you want to track the progress of a single work item, choose the  follow icon. This signals the system to notify you when changes are made to the work item.

[!div class="mx-imgBorder"]
Work item form, Follow icon control

You'll only receive notifications when other members of your team modifies 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  following icon.

::: moniker-end

::: moniker range=">= tfs-2017 <= azure-devops-2019"

Important

To support the follow feature, you must configure an SMTP server in order for team members to receive notifications.

::: moniker-end

Try this next

To quickly add backlog items, such as user stories, requirements or bugs, see these articles:

[!div class="nextstepaction"] Create your backlog Kanban 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 additional clients that you can use to add work items, see Clients that support tracking work items.