feat(jobs): add Jobs.getById method [PLT-100298]#358
Conversation
|
@claude review this PR |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
@claude review this PR |
This comment was marked as resolved.
This comment was marked as resolved.
eb62ee1 to
ee474e9
Compare
46f43ee to
12f3f62
Compare
Raina451
left a comment
There was a problem hiding this comment.
minor comments. rest lgtm
|
@claude can you add OR.Jobs.Write as well - along with OR.Jobs for the scope? |
|
Claude finished @ninja-shreyash's task in 55s —— View job Adding
|
2f79c6d to
3ee0663
Compare
Exposes the existing GET_BY_KEY endpoint as a public getByKey() method on the Jobs service. Refactors getOutput() to use getByKey() internally instead of the private fetchJobByKey() helper. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3ee0663 to
a0863c3
Compare
Review update1 thread unresolved, 1 new finding: Unresolved — New — |
|



Method Added
jobs.getById()getById(jobKey: string, folderId: number, options?: JobGetByIdOptions): Promise<JobGetResponse>Endpoint Called
getById()/odata/Jobs/UiPath.Server.Configuration.OData.GetByKey(identifier={jobKey})OR.JobsorOR.Jobs.ReadFolderScopedService— setsX-UIPATH-OrganizationUnitIdheader for folder scoping$expand(Robot, Machine) and$selectviaJobGetByIdOptionsgetOutput()to usegetById()internally instead of the removed privatefetchJobByKey()helperExample Usage
API Response vs SDK Response
Transform pipeline
pascalToCamelCaseKeys()→transformData(JobMap)→createJobWithMethods()Field mapping
CreationTimecreatedTimeLastModificationTimelastModifiedTimeOrganizationUnitIdfolderIdOrganizationUnitFullyQualifiedNamefolderNameReleaseNameprocessNameReleaseVersionIdprocessVersionIdProcessTypepackageTypeReleaseprocessFiles
src/models/orchestrator/jobs.types.tssrc/models/orchestrator/jobs.models.tssrc/services/orchestrator/jobs/jobs.tssrc/models/orchestrator/jobs.internal-types.ts(no longer needed)tests/unit/services/orchestrator/jobs.test.ts(23 tests, 6 new)tests/integration/shared/orchestrator/jobs.integration.test.ts(4 new tests)docs/oauth-scopes.mdRefs PLT-100298
🤖 Auto-generated using onboarding skills