Interact with WorkItems
The COSMO Alpaca extension allows a couple of interactions with WorkItems in your projects. To see the WorkItems, you go to the COSMO Alpaca view, open your project and extend "WorkItems (max 25 per query)". You will always see a couple of predefined queries there and you will also see all shared queries in your project as well as your own private queries. Please note that for now only queries of type "flat list of WorkItems" are shown. If you need more information about working with queries, please take a look at the Azure DevOps documentation
Associate a WorkItem to a commit
When you make a change in your code and want to connect that change to a WorkItem, a standard Azure DevOps functionality is that you just have to #-mention the ID of the relevant WorkItem and the connection will be made. If you don't know that ID, you can easily find it like this:
- Stage your change in the Git view
- Go to the COSMO Alpaca view, open your project and extend "WorkItems (max 25 per query)"
- Select a query that should show the WorkItem you need
- Right-click on the WorkItem and select "Associate WorkItem to commit"
- Go back to the Git view and find the right comment
- Commit and push your change
To validate the connection, you can go back to the COSMO Alpaca view and open the WorkItem in the browser
You can watch a walkthrough here:
Create a branch to work on a WorkItem
You can find the documentation about that here