Closed Bug 1317958 Opened 8 years ago Closed 7 years ago

Add Find-Job-By-Task-ID

Categories

(Tree Management :: Treeherder: API, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1323110

People

(Reporter: ekyle, Unassigned)

Details

It is currently difficult to highlight a Treeherder job when the job number is not known. Specifically, for any given TC job, I know the revision, branch, and taskID. Finding the particular job in Treeherder that matches requires many calls to 

https://treeherder.mozilla.org/api/project/{{branch}}/job-log-url/?job_id={{job_id}}&format=json

Please add an API endpoint that will accept a TaskID, and return the job that represents it.
We are not presently storing the taskId in Treeherder, so we'd need to start doing that for this to work (arguably it should be stored in the jobs table). At present the best way of getting this information is to use the job details API and parse the taskId from the "inspect task" link:

https://treeherder.allizom.org/api/jobdetail/?job_id=36970652&repository=mozilla-inbound&title=Inspect%20Task
We really need to do a better job of this, it's becoming increasingly silly to not have the taskId properly stored in treeherder. Let's follow up in bug 1323110
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.