https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292021-02-24T18:39:26ZRedmineRedmine - Feature #34797: Make default_assignee available through APIhttps://www.redmine.org/issues/34797?journal_id=1010712021-02-24T18:39:26ZMarius BĂLTEANU
<ul><li><strong>File</strong> <a href="/attachments/26731">request.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/26731/request.png">request.png</a> added</li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Invalid</i></li></ul><p>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.</p>
<p>On my instance (latest trunk), the following request:</p>
<p><img src="https://www.redmine.org/attachments/download/26731/request.png" style="width:50%;" alt="" /></p>
<p>created the project with default assignee and version:</p>
<pre>
{
"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"
}
}
</pre>
<p>I'm closing this, please reopen if something is missing.</p> Redmine - Feature #34797: Make default_assignee available through APIhttps://www.redmine.org/issues/34797?journal_id=1010962021-02-25T10:32:17ZSébastien Lardière
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>Ok, thanks for your answer, I got it now, but I can't use subproject, for historical reason.</p>
<p>How can I setup `default_assigned_to_id` after created the membership ? </p> Redmine - Feature #34797: Make default_assignee available through APIhttps://www.redmine.org/issues/34797?journal_id=1011002021-02-25T14:29:21ZSébastien Lardière
<ul></ul><p>Actually, it works, just put default_assigned_to_id after created the membership.</p>
<p>Worth to be documented, ihmo.</p>
<p>Thanks,</p> Redmine - Feature #34797: Make default_assignee available through APIhttps://www.redmine.org/issues/34797?journal_id=1011112021-02-26T22:08:07ZMarius BĂLTEANU
<ul><li><strong>Category</strong> changed from <i>REST API</i> to <i>Documentation</i></li><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Marius BĂLTEANU</i></li><li><strong>Resolution</strong> changed from <i>Invalid</i> to <i>Fixed</i></li></ul><p>I've updated the page <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/Rest_Projects">Rest_Projects</a>.</p>