Title: Provide ProjectJob methods on ProjectPipelineJob? · Issue #3324 · python-gitlab/python-gitlab · GitHub
Open Graph Title: Provide ProjectJob methods on ProjectPipelineJob? · Issue #3324 · python-gitlab/python-gitlab
X Title: Provide ProjectJob methods on ProjectPipelineJob? · Issue #3324 · python-gitlab/python-gitlab
Description: Description of the problem, including code/CLI snippet Currently, getting the trace from a job obtained through a pipeline requires an extra request. This works, but I don't see any reason for ProjectPipelineJob not to have the trace() m...
Open Graph Description: Description of the problem, including code/CLI snippet Currently, getting the trace from a job obtained through a pipeline requires an extra request. This works, but I don't see any reason for Proj...
X Description: Description of the problem, including code/CLI snippet Currently, getting the trace from a job obtained through a pipeline requires an extra request. This works, but I don't see any reason for ...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/3324
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Provide ProjectJob methods on ProjectPipelineJob?","articleBody":"## Description of the problem, including code/CLI snippet\nCurrently, getting the trace from a job obtained through a pipeline requires an extra request. This works, but I don't see any reason for ProjectPipelineJob not to have the `trace()` method as well, since all it requires is the job's ID.\n\nThe same goes for all the other methods on `ProjectJob`.\n\n## Code for current API\n```\nimport gitlab\n\ng = gitlab.Gitlab(\"https://gitlab.example.com/\")\nproject = g.projects.get(\"example/example\")\npipeline = project.pipelines.latest()\njobs = pipeline.jobs.list(iterator=True)\njob = project.jobs.get(next(jobs).id)\ntrace = job.trace()\n```\n\n\n## Code for desired API\n```\nimport gitlab\n\ng = gitlab.Gitlab(\"https://gitlab.example.com/\")\nproject = g.projects.get(\"example/example\")\npipeline = project.pipelines.latest()\njobs = pipeline.jobs.list(iterator=True)\ntrace = next(jobs).trace()\n```\n\n## Specifications\n\n - python-gitlab version: 7.1.0\n - Gitlab server version (or gitlab.com): gitlab.com","author":{"url":"https://github.com/lheckemann","@type":"Person","name":"lheckemann"},"datePublished":"2026-01-15T17:01:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3324/python-gitlab/issues/3324"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:215bdede-9b46-3afc-742f-d862acadc920 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F24:18DE62:4BC57AE:615F660:6976290B |
| html-safe-nonce | 76424b087c8a9c451e79352cced902e219c85fac1814163d9e2127d39553b0fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjI0OjE4REU2Mjo0QkM1N0FFOjYxNUY2NjA6Njk3NjI5MEIiLCJ2aXNpdG9yX2lkIjoiMzczMDAwMjE4ODY0MjQyOTE5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bc23ad22d6b053210d83648c678fe5786edfca39fda708aff1d4f8e2919175dd |
| hovercard-subject-tag | issue:3818379614 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-gitlab/python-gitlab/3324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4cbaf9b43de9a92835b0fb543782e0b2129faf78f1de1a773481b805323274c4/python-gitlab/python-gitlab/issues/3324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4cbaf9b43de9a92835b0fb543782e0b2129faf78f1de1a773481b805323274c4/python-gitlab/python-gitlab/issues/3324 |
| og:image:alt | Description of the problem, including code/CLI snippet Currently, getting the trace from a job obtained through a pipeline requires an extra request. This works, but I don't see any reason for Proj... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lheckemann |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git |
| octolytics-dimension-user_id | 28886265 |
| octolytics-dimension-user_login | python-gitlab |
| octolytics-dimension-repository_id | 8077625 |
| octolytics-dimension-repository_nwo | python-gitlab/python-gitlab |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8077625 |
| octolytics-dimension-repository_network_root_nwo | python-gitlab/python-gitlab |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width