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

[bug]: API PATCH /api/v1/workspaces/platform/projects/*issues/*/ not working #4171

Closed
1 task done
MichaelErmer opened this issue Apr 11, 2024 · 4 comments
Closed
1 task done
Assignees
Labels
🐛bug Something isn't working

Comments

@MichaelErmer
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

If you do a PATCH to change the state of an issue, its failing with Issue with the same external id and external source already exists.
The issue has both fields not set and they are not part of the PATCH body.
Body:

{ "state": "1fd644f8-7564-4fa7-befe-a29ad9b8f9c5" }

Issue Detail:

{
    "id": "c7375812-d89f-4f19-8ac0-c99dd96d2dda",
    "created_at": "2024-04-09T12:54:49.760329Z",
    "updated_at": "2024-04-11T07:20:21.672020Z",
    "estimate_point": null,
    "name": "xyz",
    "description_html": "<p></p>",
    "priority": "high",
    "start_date": null,
    "target_date": null,
    "sequence_id": 19,
    "sort_order": 205535.0,
    "completed_at": null,
    "archived_at": null,
    "is_draft": false,
    "external_source": null,
    "external_id": null,
    "created_by": "5a302c91-b3f8-495b-985f-25cec4df7df7",
    "updated_by": "5a302c91-b3f8-495b-985f-25cec4df7df7",
    "project": "2f87b57a-6d6c-4bd0-a24f-8df624533428",
    "workspace": "0caecda2-14c6-4751-82a8-5fc02fb33fb6",
    "parent": null,
    "state": "fdabeb3d-3cce-496c-87cd-11bcba2b114d",
    "assignees": [
        "5a302c91-b3f8-495b-985f-25cec4df7df7"
    ],
    "labels": []
}

Steps to reproduce

  1. create issue
  2. PATCH using API

Environment

Production

Browser

None

Version

Self-hosted

@Haelle
Copy link

Haelle commented Apr 24, 2024

Some problem here, I got a HTTP 409

{"error":"Issue with the same external id and external source already exists","id":"issue-uuid"}

P.S: I saw the PR, it's not released on Plane.so yet

@aj-data
Copy link

aj-data commented May 3, 2024

Got similar error when trying to update issue details via API using requests library in Python 3.9. When I send the request via Postman it works, but sending the same request via Python does not. The response shows no error or warning.

@MichaelErmer
Copy link
Contributor Author

MichaelErmer commented May 7, 2024

Got similar error when trying to update issue details via API using requests library in Python 3.9. When I send the request via Postman it works, but sending the same request via Python does not. The response shows no error or warning.

If it works in postman its an error on your end. This is resolved in the last release.

@aj-data
Copy link

aj-data commented May 7, 2024

Got similar error when trying to update issue details via API using requests library in Python 3.9. When I send the request via Postman it works, but sending the same request via Python does not. The response shows no error or warning.

If it works in postman its an error on your end. This is resolved in the last release.

It was on my end, I forgot to include a trailing slash at the end of the url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants