Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Milestone doesn't get assigned via API #4270

Closed
3 tasks done
jonasfranz opened this issue Jun 18, 2018 · 1 comment · Fixed by #4271
Closed
3 tasks done

Milestone doesn't get assigned via API #4270

jonasfranz opened this issue Jun 18, 2018 · 1 comment · Fixed by #4271
Labels
modifies/api This PR adds API routes or modifies them type/bug
Milestone

Comments

@jonasfranz
Copy link
Member

  • Gitea version (or commit ref): 85414d8
  • Operating system: elementary os / Ubuntu 16.04
  • Database (use [x]):
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes
  • Log gist:

Description

If I try to create an issue via the API and I try to assign a milestone in that request it won't be set.

Request:

curl -X POST "https://try.gitea.io/api/v1/repos/JonasFranzDEV/gitea/issues" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{  \"body\": \"Test\",  \"milestone\": 165,  \"title\": \"Test Milestone\"}"

Response:

{
  "id": 1556,
  "url": "https://try.gitea.io/api/v1/repos/JonasFranzDEV/gitea/issues/50",
  "number": 50,
  "user": {
    "id": 1609,
    "login": "JonasFranzDEV",
    "full_name": "",
    "email": "info@jonasfranz.software",
    "avatar_url": "https://try.gitea.io/avatars/a85562fb670c0233a9bf1f61b2c6c4ee",
    "language": "de-DE",
    "username": "JonasFranzDEV"
  },
  "title": "Test Milestone",
  "body": "Test",
  "labels": [],
  "milestone": null,
  "assignee": null,
  "assignees": null,
  "state": "open",
  "comments": 0,
  "created_at": "2018-06-18T13:08:57Z",
  "updated_at": "2018-06-18T13:08:57Z",
  "closed_at": null,
  "due_date": null,
  "pull_request": null
}

milestone is null but should be set.

@lunny lunny added type/bug modifies/api This PR adds API routes or modifies them labels Jun 18, 2018
@lunny lunny added this to the 1.5.0 milestone Jun 18, 2018
@johnrazeur
Copy link

I have no issue on the release/v1.4, but I can reproduce this bug on master.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants