https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292020-03-09T12:47:46ZRedmineRedmine - Defect #33113: Default version and assignee are not exposed via projects APIhttps://www.redmine.org/issues/33113?journal_id=966602020-03-09T12:47:46ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>Default Version is not exposed via the API</i> to <i>Default version and assignee are not exposed via projects API</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Confirmed</i></li></ul><p>I think the default assignee should be in the API response as well.</p> Redmine - Defect #33113: Default version and assignee are not exposed via projects APIhttps://www.redmine.org/issues/33113?journal_id=966612020-03-09T12:51:57ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-5 priority-3 priority-lowest closed" href="/issues/1828">Feature #1828</a>: Default target version for new issues</i> added</li></ul> Redmine - Defect #33113: Default version and assignee are not exposed via projects APIhttps://www.redmine.org/issues/33113?journal_id=966632020-03-09T12:52:16ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-5 priority-4 priority-default closed" href="/issues/482">Feature #482</a>: Default assignee on each project</i> added</li></ul> Redmine - Defect #33113: Default version and assignee are not exposed via projects APIhttps://www.redmine.org/issues/33113?journal_id=967102020-03-10T21:24:57ZMarius BÄ‚LTEANU
<ul></ul><p>The following JSON response is enough (keys <code>default_version</code> and <code>default_assignee</code>)?</p>
<pre>
{
"project": {
"id": 1,
"name": "eCookbook",
"identifier": "ecookbook",
"description": "Recipes management application",
"homepage": "http://ecookbook.somenet.foo/",
"status": 1,
"is_public": true,
"inherit_members": false,
"default_version": {
"id": 3,
"name": "2.0"
},
"default_assignee": {
"id": 3,
"name": "Dave Lopper"
},
"custom_fields": [
{
"id": 3,
"name": "Development status",
"value": "Stable"
}
],
"created_on": "2006-07-19T17:13:59Z",
"updated_on": "2020-03-10T21:23:11Z"
}
}
</pre> Redmine - Defect #33113: Default version and assignee are not exposed via projects APIhttps://www.redmine.org/issues/33113?journal_id=967242020-03-11T09:18:37ZRasmus Eneman
<ul></ul><p>That would be perfect for my use case</p> Redmine - Defect #33113: Default version and assignee are not exposed via projects APIhttps://www.redmine.org/issues/33113?journal_id=967592020-03-14T16:26:24ZMarius BÄ‚LTEANU
<ul><li><strong>File</strong> <a href="/attachments/25002">0001-Show-default-asignee-and-default-version-in-projects.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/25002/0001-Show-default-asignee-and-default-version-in-projects.patch">0001-Show-default-asignee-and-default-version-in-projects.patch</a> added</li><li><strong>Target version</strong> set to <i>4.0.7</i></li></ul><p>Here is the patch, I think we can deliver this fix in a minor release. If not, please move it to <a class="version" href="https://www.redmine.org/versions/152">4.2.0</a>.</p>
<p>Test results <a href="https://gitlab.com/redmine-org/redmine/pipelines/126316182" class="external">here</a>.</p> Redmine - Defect #33113: Default version and assignee are not exposed via projects APIhttps://www.redmine.org/issues/33113?journal_id=967652020-03-15T04:15:29ZGo MAEDA
<ul></ul><p>Marius BALTEANU wrote:</p>
<blockquote>
<p>I think we can deliver this fix in a minor release.</p>
</blockquote>
<p>I agree. The two attributes should have been added in Redmine 3.2 or 3.4. And adding attributes does not break existing API clients if those are properly implemented.</p> Redmine - Defect #33113: Default version and assignee are not exposed via projects APIhttps://www.redmine.org/issues/33113?journal_id=968062020-03-17T08:59:35ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed the patch. Thank you.</p>