Project

General

Profile

Actions

Feature #34797

closed

Make default_assignee available through API

Added by Sébastien Lardière over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Documentation
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

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

request.png (84.9 KB) request.png Marius BĂLTEANU, 2021-02-24 19:35
Actions #1

Updated by Marius BĂLTEANU over 4 years ago

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.

Actions #2

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 ? 

Actions #3

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,

Actions #4

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.

Actions

Also available in: Atom PDF