This task requires Allow Scripts to Access OAuth Token to be enabled.
Usage
Add a new Update Work Item task from the Utility category...
...and configure it as needed.
Parameters include:
Work Item Type: The type of associated work items to update.
State: The new state to assign to work items. Must be a valid state for the work item type.
Reason: The reason for updating work item state. Must be a valid reason for the state. Use this with custom states or states with multiple valid reasons. If left blank, the default reason value for the state will be used.
Add Link to Build: Add a link to the current build to the work items.
Error Action: The action to take when an error is encountered during work item update.
Fail: Fails the build when an error is encountered.