Title: Changing milestone of issue does not work · Issue #1432 · python-gitlab/python-gitlab · GitHub
Open Graph Title: Changing milestone of issue does not work · Issue #1432 · python-gitlab/python-gitlab
X Title: Changing milestone of issue does not work · Issue #1432 · python-gitlab/python-gitlab
Description: Description of the problem, including code/CLI snippet I am trying to change milestone of issue. I understand that I should set milestone_id with valid ID of milestone (reference #612 as well as https://docs.gitlab.com/ee/api/issues.html...
Open Graph Description: Description of the problem, including code/CLI snippet I am trying to change milestone of issue. I understand that I should set milestone_id with valid ID of milestone (reference #612 as well as ht...
X Description: Description of the problem, including code/CLI snippet I am trying to change milestone of issue. I understand that I should set milestone_id with valid ID of milestone (reference #612 as well as ht...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1432
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Changing milestone of issue does not work","articleBody":"## Description of the problem, including code/CLI snippet\r\nI am trying to change milestone of issue. I understand that I should set `milestone_id` with valid ID of milestone (reference https://github.com/python-gitlab/python-gitlab/issues/612 as well as https://docs.gitlab.com/ee/api/issues.html#edit-issue). The problem is that it seems to not work. The code passes without any error or warning but issue still has the old milestone assigned.\r\n\r\n```\r\n project = ctx.projects.get(265)\r\n issue = project.issues.get(729)\r\n issue.milestone_id = 1372\r\n issue.save()\r\n```\r\n\r\nI am sure that I am setting correct milestone ID as I am getting it just few lines prior using code:\r\n```\r\n group = ctx.groups.get(GROUP)\r\n new_milestone = next(group.milestones.list(title=new_milestone, as_list=False))\r\n print(new_milestone.id)\r\n```\r\n\r\n## Expected Behavior\r\nMilestone changes.\r\n\r\n## Actual Behavior\r\nNothing happens.\r\n\r\n## Specifications\r\n\r\n - python-gitlab version: 2.6.0\r\n - API version you are using (v3/v4): v4\r\n - Gitlab server version (or gitlab.com): 13.10.3\r\n","author":{"url":"https://github.com/Cynerd","@type":"Person","name":"Cynerd"},"datePublished":"2021-04-30T10:32:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1432/python-gitlab/issues/1432"}
| 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:53cba08b-2f52-7e74-867e-29d76b055c21 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9094:232A6D:171FF69:1E6A81D:69770B1C |
| html-safe-nonce | 79d136c9fda6e6548e07e385050d7b8e5c143767b9a7823855c6d71d5559463b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDk0OjIzMkE2RDoxNzFGRjY5OjFFNkE4MUQ6Njk3NzBCMUMiLCJ2aXNpdG9yX2lkIjoiNjM1OTY4MTI2MDkxMzYyNTg4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2cd9c02c0c7dc26b8edc8031bab09844d35932132801246cf5f3f5f34f071b2a |
| hovercard-subject-tag | issue:872304315 |
| 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/1432/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d79c9f82547a43b292861262080361e0626bcdd32bf5ff3fdd9542fd0c06130/python-gitlab/python-gitlab/issues/1432 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d79c9f82547a43b292861262080361e0626bcdd32bf5ff3fdd9542fd0c06130/python-gitlab/python-gitlab/issues/1432 |
| og:image:alt | Description of the problem, including code/CLI snippet I am trying to change milestone of issue. I understand that I should set milestone_id with valid ID of milestone (reference #612 as well as ht... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Cynerd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| 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 | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width