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: patch-diff.githubusercontent.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:436b47a0-068e-74c2-f791-1cb54c663d63 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A572:42DE3:2632825:30BAE17:6975F3E8 |
| html-safe-nonce | d7afab0337a6652e76955c9a668484a85d1e015434768a0c28ccfef2113f3f15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTcyOjQyREUzOjI2MzI4MjU6MzBCQUUxNzo2OTc1RjNFOCIsInZpc2l0b3JfaWQiOiIxMzc3NzYxOTE5MDQwMzUzMjU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0df292824838239df309a5bce8d8280e431de87d4ca15f850db3a58f9f687307 |
| 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 | 2bce766e7450b03e00b2fc5badd417927ce33a860e78cda3e4ecb9bbd1374cc6 |
| 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 | fcca2b8ef702b5f7f91427a6e920fa44446fe312 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width