Work items
With Azure DevOps, Commitline lists the work items assigned to you, and makes a branch for one in a single step.
Work items are Azure DevOps only.
My work items
Open it from My work items, under the Git view's Azure DevOps row, or in the Repository view.
It needs a repository on Azure DevOps open, and you signed in to its organization.
It lists the open work items assigned to you in the repository's project, with parents and their children folded under them.
The columns are ID, Title, State, Iteration and Links: a pull request, how many commits, or how many children.
- Type and State filter the list; it starts on all types, not closed.
- It shows the first 200 work items Azure DevOps answers, and says so when there are more.
- New work item opens the project's work items page on Azure DevOps, in your browser.
A work item's details
Choose a work item, and the Work item view on the right shows it:
- its type, number, title and state, who it's assigned to, its iteration, area and points;
- its parent, and for a task, the hours left;
- its acceptance criteria;
- Development: the branches, pull requests and commits linked to it;
- Linked in your history: commits in your repository that name it, from the last 1,000 commits.
Commitline doesn't edit a work item's fields; do that on Azure DevOps.
Make a branch for a work item
Choose Create branch in the Work item view, or Create a branch on a work item chip's card.
The dialog suggests:
- a Name such as
users/you/42-fix-the-login, from the work item's number and title; - what it's Based on: the branch of the work item's parent, when you have one, or else your current branch.
Then choose what else happens:
| Choice | At first | What it does |
|---|---|---|
| Link the branch to the work item in Azure Boards | On | Links them, so the branch shows under the work item's Development. |
| Set it to Active and assign it to me | On | Moves the work item to Active, and assigns it to you. |
Start commit messages with #42 | On | Fills #42 in at the start of each commit message on this branch, while Commitline runs. |
| Push and track it on origin | Off | Pushes the new branch and sets its upstream. |
Choose Create and switch.
Commitline makes the branch and switches to it, then does the rest in order.
If a step fails, the dialog says which one, and choosing again does only the steps left.
In commit messages
In a repository on Azure DevOps, #42 and AB#42 in a commit message show as chips in the Commit view, with work item 42's type, title and state.AB# counts only in capitals.