Feature #34797
closedMake default_assignee available through API
0%
Description
Since #33113, the default_assignee field in a project is available through the API, but in read omly : we cannot create a project with this field through the API.
Maybe I'm wrong, then, please, let me know how can I do that ?
Is this feature can be added in the API ?
thanks,
Files
Updated by Marius BĂLTEANU over 4 years ago
- File request.png request.png added
- Status changed from New to Closed
- Resolution set to Invalid
API already supports this, but it can be used only when the project that you created is a subproject and it inherits the members, otherwise, you cannot used it because the project has no members and the default assignee needs to be an existing member.
On my instance (latest trunk), the following request:
created the project with default assignee and version:
{ "project": { "id": 12, "name": "abcde", "identifier": "abcde", "description": null, "homepage": "", "parent": { "id": 1, "name": "eCookbook" }, "status": 1, "is_public": true, "inherit_members": true, "default_version": { "id": 7, "name": "Systemwide visible version" }, "default_assignee": { "id": 3, "name": "Dave Lopper" }, "custom_fields": [ { "id": 3, "name": "Development status", "value": "" } ], "created_on": "2021-02-24T18:31:09Z", "updated_on": "2021-02-24T18:31:09Z" } }
I'm closing this, please reopen if something is missing.
Updated by Sébastien Lardière over 4 years ago
- Status changed from Closed to Reopened
Ok, thanks for your answer, I got it now, but I can't use subproject, for historical reason.
How can I setup `default_assigned_to_id` after created the membership ?
Updated by Sébastien Lardière over 4 years ago
Actually, it works, just put default_assigned_to_id after created the membership.
Worth to be documented, ihmo.
Thanks,
Updated by Marius BĂLTEANU over 4 years ago
- Category changed from REST API to Documentation
- Status changed from Reopened to Closed
- Assignee set to Marius BĂLTEANU
- Resolution changed from Invalid to Fixed
I've updated the page Rest_Projects.