Title: Feature request: manipulate project issue status · Issue #3295 · python-gitlab/python-gitlab · GitHub
Open Graph Title: Feature request: manipulate project issue status · Issue #3295 · python-gitlab/python-gitlab
X Title: Feature request: manipulate project issue status · Issue #3295 · python-gitlab/python-gitlab
Description: Description of the problem, including code/CLI snippet My team is currently moving to tracking issues using the issue status introduced in Gitlab 18.2: https://about.gitlab.com/releases/2025/07/17/gitlab-18-2-released/#custom-workflow-st...
Open Graph Description: Description of the problem, including code/CLI snippet My team is currently moving to tracking issues using the issue status introduced in Gitlab 18.2: https://about.gitlab.com/releases/2025/07/17/...
X Description: Description of the problem, including code/CLI snippet My team is currently moving to tracking issues using the issue status introduced in Gitlab 18.2: https://about.gitlab.com/releases/2025/07/17/...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/3295
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature request: manipulate project issue status","articleBody":"## Description of the problem, including code/CLI snippet\nMy team is currently moving to tracking issues using the issue status introduced in Gitlab 18.2:\nhttps://about.gitlab.com/releases/2025/07/17/gitlab-18-2-released/#custom-workflow-statuses-for-issues-and-tasks\n\nMy company uses this library to automate opening gitlab issues. Below is a snippet from said automation. I tried to get at what I could send in the create() method by dumping issue to JSON and got the following (company info redacted)\n\n```\n{\n \"id\": 177073754,\n \"iid\": ...,\n \"project_id\": ...,\n \"title\": \"...\",\n \"description\": \"...\",\n \"state\": \"opened\",\n \"created_at\": \"2025-11-13T21:49:44.290Z\",\n \"updated_at\": \"2025-11-13T21:49:44.290Z\",\n \"closed_at\": null,\n \"closed_by\": null,\n \"labels\": [\n ...\n ],\n \"milestone\": {\n \"id\": 4775912,\n \"iid\": ...,\n \"project_id\": ...,\n \"title\": \"Development\",\n \"description\": \"Development (non-production) work that has yet to merge.\",\n \"state\": \"active\",\n \"created_at\": \"2021-10-01T18:45:11.056Z\",\n \"updated_at\": \"2025-02-27T21:17:20.634Z\",\n \"due_date\": \"2030-06-30\",\n \"start_date\": \"2026-06-01\",\n \"expired\": false,\n \"web_url\": \"...\"\n },\n \"assignees\": [],\n \"author\": {\n \"id\": 31427160,\n \"username\": \"project_..._bot_...\",\n \"public_email\": null,\n \"name\": \"...\",\n \"state\": \"active\",\n \"locked\": false,\n \"avatar_url\": \"...\",\n \"web_url\": \"...\"\n },\n \"type\": \"ISSUE\",\n \"assignee\": null,\n \"user_notes_count\": 0,\n \"merge_requests_count\": 0,\n \"upvotes\": 0,\n \"downvotes\": 0,\n \"due_date\": null,\n \"confidential\": false,\n \"discussion_locked\": null,\n \"issue_type\": \"issue\",\n \"web_url\": \"...\",\n \"time_stats\": {\n \"time_estimate\": 0,\n \"total_time_spent\": 0,\n \"human_time_estimate\": null,\n \"human_total_time_spent\": null\n },\n \"task_completion_status\": {\n \"count\": 1,\n \"completed_count\": 0\n },\n \"weight\": 1,\n \"blocking_issues_count\": 0,\n \"has_tasks\": false,\n \"_links\": {\n \"self\": \"...\",\n \"notes\": \"...\",\n \"award_emoji\": \"...\",\n \"project\": \"...\",\n \"closed_as_duplicate_of\": null\n },\n \"references\": {\n \"short\": \"...\",\n \"relative\": \"...\",\n \"full\": \"...\"\n },\n \"severity\": \"UNKNOWN\",\n \"subscribed\": true,\n \"moved_to_id\": null,\n \"imported\": false,\n \"imported_from\": \"none\",\n \"service_desk_reply_to\": null,\n \"epic_iid\": ...,\n \"epic\": {\n \"id\": ...,\n \"iid\": ...,\n \"title\": \"..\",\n \"url\": \"\",\n \"group_id\": ...\n },\n \"iteration\": null,\n \"health_status\": null\n}\n```\n\nUnfortunately, I was not able to discern from this information how to set the status. Please let me know if it exists and this is a case of user error.\n\n## Expected Behavior\n```\nissue: ProjectIssue = jointsProject.issues.create(\n {\n 'title': issueTitle,\n 'description': issueDescription,\n 'status': 'Approval Queue', # This is what I'd like to work, or some equivalent\n 'labels': [ ],\n 'milestone_id': developmentMilestoneID, \n 'epic_iid': epicID,\n 'weight': 1,\n }\n )\n```\n\n\u003cimg width=\"301\" height=\"82\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/70707ae4-5841-43cb-8f21-fdc85ece42fe\" /\u003e\n\n## Actual Behavior\n\n\u003cimg width=\"311\" height=\"94\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/a3aa35cd-0992-49c8-95ba-68f202ab4bc8\" /\u003e\n\n## Specifications\n\n - python-gitlab version: 7.0.0\n - Gitlab server version (or gitlab.com): GitLab Enterprise Edition 18.6.0-pre [b618d849058](https://gitlab.com/gitlab-org/gitlab/-/commits/b618d849058)\n","author":{"url":"https://github.com/totternessZB","@type":"Person","name":"totternessZB"},"datePublished":"2025-11-13T22:17:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/3295/python-gitlab/issues/3295"}
| 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:1576b9a6-713f-367b-c6d0-3330fc3430a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9F6:2F76D:244EBFB:2ED5293:6975692B |
| html-safe-nonce | 6fd240079fcaa8467fb7a57ba3cdc9972213f3f1b9ee24b9aee288a157c2a6ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUY2OjJGNzZEOjI0NEVCRkI6MkVENTI5Mzo2OTc1NjkyQiIsInZpc2l0b3JfaWQiOiI3NTkxNzU2MDc4MDY2ODM0MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | abf20565eed85c46616d0dc6d531df07bf08d6c0778f17384b4a4646b272ee51 |
| hovercard-subject-tag | issue:3623034951 |
| 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/3295/issue_layout |
| twitter:image | https://opengraph.githubassets.com/06a09a930156ed0fd058847ffb77f587e868265e5491a6cf81c584f99a36aeb5/python-gitlab/python-gitlab/issues/3295 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06a09a930156ed0fd058847ffb77f587e868265e5491a6cf81c584f99a36aeb5/python-gitlab/python-gitlab/issues/3295 |
| og:image:alt | Description of the problem, including code/CLI snippet My team is currently moving to tracking issues using the issue status introduced in Gitlab 18.2: https://about.gitlab.com/releases/2025/07/17/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | totternessZB |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width