Add job key to coded action app getTask method - #720
Open
Sandeepan-Ghosh-0312 wants to merge 1 commit into
Open
Conversation
Contributor
|
Contributor
|
Two issues found this run — details in the inline comments. |
Contributor
|
One new finding this run:
|
Contributor
|
One new finding this run:
|
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sandeepan-Ghosh-0312
force-pushed
the
feat/addJobKeyCodedActionApp
branch
from
September 8, 2026 05:54
dfe8b59 to
03224f9
Compare
Contributor
|
✅ No issues found. Checked for bugs and CLAUDE.md compliance. |
Raina451
approved these changes
Sep 11, 2026
Contributor
Author
|
Will merge this once the Action Center changes have reached prod al rings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Surfaces
jobKey— the GUID key of the job that created the task — on theTaskobject thatgetTask()resolves.Type and documentation only.
getTask()resolves Action Center'sLOADAPPpayload as-is, so the value already arrives on the message; this PR gives it a name on the public type so apps can read it without a cast.Why
A coded action app that creates Orchestrator resources needs the job behind the task to hang them off. The case in hand is file upload:
attachments.create()takes ajobKey, and the link it makes is what decides who can read the file back — an attachment that belongs to no job is readable only by the account that created it, so an approver opening the action would get a 403 on the file the reviewer just uploaded.What changed
src/types.tsjobKeyadded to theTasktypesrc/coded-action-app.models.tsgetTask()JSDoc example — the source of both the docs site and IDE hoverspackages/coded-action-app/README.mdgetTask()field list and theTasktype referencedocs/coded-action-app-sdk/getting-started.mdgetTask()field list on the docs sitepackages/coded-action-app/package-lock.jsonlibcarrays from optional rollup platform entries — an artifact of the npm version that regenerated the lock, no dependency or version changeNo behaviour change: no new events, no change to the existing ones, and nothing to migrate. Reading
task.jobKeyis opt-in.Release
The version bump is not in this PR — per the release workflow it ships on its own, so
jobKeyreaches consumers with the next publish of@uipath/coded-action-app.