Skip to content

feat(platform): add assign and complete to TasksService - #1960

Open
PG-Thomas wants to merge 1 commit into
mainfrom
feat/tasks-assign-complete
Open

PG-Thomas wants to merge 1 commit into
mainfrom
feat/tasks-assign-complete

Conversation

@PG-Thomas

@PG-Thomas PG-Thomas commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Adds assign / assign_async and complete / complete_async to TasksService. The TypeScript SDK already ships both as tasks.assign and tasks.complete; this brings the same calls to Python.

Today a Python agent that has to answer an Action Center task on someone's behalf (for example to resume a job after a review went unanswered) must call AssignTasks and CompleteAppTask by hand. Assigning exists only as a private helper used during create.

Same as the TypeScript SDK

This PR TypeScript SDK
assign / assign_async tasks.assign
complete / complete_async tasks.complete
_assign_by_user_spec: one of user_id or user_name_or_email TaskAssignOptions
_COMPLETE_ENDPOINTS and _complete_spec: app, form, otherwise generic endpoint switch and endpoints
_raise_on_assignment_errors processODataArrayResponse

Same endpoints, same request bodies, same dispatch on task type.

Lets a caller assign an Action Center task to a single user and complete it, which
resumes the job waiting on it. AssignTasks reports per-task failures in a 200 body,
so assign raises OperationFailedException for them. Matches tasks.assign and
tasks.complete in the TypeScript SDK.
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Oct 28, 2026
@sonarqubecloud

Copy link
Copy Markdown

@PG-Thomas
PG-Thomas marked this pull request as ready for review October 28, 2026 13:54
Copilot AI balanced review requested due to automatic review settings October 28, 2026 13:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants