Added support for creating Work Items #266
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added a
create_work_item_for_agentaction that resolves agents by name and creates Work Items with optional attachments. Attachments now support local paths or chat file basenames (via chat files API), and the Work Item API client handles uploads/confirm flow. Work Item API URL resolution now supports v2 and falls back to v1 on 404 to handle mixed environments. Documentation and devdata were updated accordingly.Motivation: enable agents to create Work Items for other agents, including passing files from chat context, and ensure compatibility when only v1 Work Item API is available.
Dependencies: no new dependencies added.
How can (was) this tested?
create_work_item_for_agentaction locally using the devdata input with an attached PDF. Verified Work Item creation and upload flow after iterating on API URL handling and multipart uploads.create_work_item_for_agentusingdevdata/input_create_work_item_for_agent.json.Test configuration:
Screenshots (if needed)
N/A
Checklist: