Fix REST/GRAPHQL APIs handling TODOs WorkItem target
What does this MR do and why?
This commit comes from !98866 (merged) and failed to be picked into the patch because of a git conflict. Conflict already resolved in this MR
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #374954 (closed)