Read the page below: How-to migrate Backlog Items from TFS to DevOps
Go to TFS and find your project.
Click on Work > Queries > New > New Query
On Editor, add a filter:
Work Item Type
Code Block User Story, Bug
State
Code Block To Do,In Progress,Active,New,Pre-Acceptance,User-Acceptance
Save query as
Open a new Excel file
Page Comparison
General
Content
Integrations