プロジェクト

全般

プロフィール

Vote #80734

完了

Default version and assignee are not exposed via projects API

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
159
issue_org_id:
33113
author_id:
448033
assigned_to_id:
332
comments:
8
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I would like either a field on project or a field the specific version but now there is no way of knowing which version id set as default on a project


journals

I think the default assignee should be in the API response as well.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
The following JSON response is enough (keys @default_version@ and @default_assignee@)?

<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>
--------------------------------------------------------------------------------
That would be perfect for my use case
--------------------------------------------------------------------------------
Here is the patch, I think we can deliver this fix in a minor release. If not, please move it to version:"4.2.0".

Test results "here":https://gitlab.com/redmine-org/redmine/pipelines/126316182.
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> I think we can deliver this fix in a minor release.

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.
--------------------------------------------------------------------------------
Committed the patch. Thank you.
--------------------------------------------------------------------------------


related_issues

relates,Closed,1828,Default target version for new issues
relates,Closed,482,Default assignee on each project

Admin Redmine さんが3年以上前に更新

  • カテゴリREST API_32 にセット
  • 対象バージョン4.0.7_159 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0