REST API - retrieving the predecessors of a job stream in the plan
Use REST APIs to retrieve the list of a job stream predecessors.
About this task
This process involves retrieving a job stream data from the plan and then inspecting its dependencies field to identify all its predecessors.
Procedure
-
First, get the data for the job stream for which you want to find predecessors.
Use the GET/twsd/api/v2/plan/jobstream endpoint.
-
For each entry in the dependencies array, use its jobId or jobStreamId to retrieve the full details of that predecessor.
- To get a predecessor job details, use the GET/twsd/api/v2/plan/job/{job_id} endpoint, pasting the jobId from the array into the ID parameter.
- To get a predecessor job stream details, use the GET/twsd/api/v2/plan/jobstream/{jobstream_id} endpoint, pasting the jobStreamId from the array into the ID parameter.
- Click Execute.
The response for each call contains the detailed information for that specific predecessor. Repeat this process for every dependency listed in the array to get the complete list of predecessors.