プロジェクト

全般

プロフィール

Vote #81805

未完了

projects.xml API doens't include closed projects since redmine v4.1

Admin Redmine さんが約2年前に追加. 約2年前に更新.

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

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
36542
author_id:
572938
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
170
ステータス-->[New]

説明

Before redmine v4.1 the /projects.xml API returned active and closed projects.
With v4.1 and upwards only active projects are returned and there isn't an option to include them (as far as I can read from the corresponding src file).

It seems the change happened with this commit: https://github.com/redmine/redmine/commit/6c5440a21b491982c02531c82b4416ef212eb3dc


journals

I have described three ways to get information about status closed (id: 5). Could you please try with this?

* Save a custom query configured to include the closed project and set its query. @http://<Redmine url>/projects?query_id=<query id>&key=<API key>@
* @http://<Redmine url>/projects.xml?f[]=status&op[status]==&v[status][]=1&v[status][]=5&key=<API key>@
* @http://<Redmine url>/projects.xml?status=5&key=<API key>@ results(closed projects) + @http://<Redmine url>/projects.xml?status=1&key=<API key>@ results(open projects)

There is a workaround, but I think the problem that the document([[Rest_Projects]]) is not updated even though the specifications of the project API have changed significantly needs to be improved.
* Add a method for adding filter conditions
* Add a description that previously included projects that were closed by default, but are no longer included
--------------------------------------------------------------------------------
Using

<pre>
https://<Redmine url>/projects.xml?f[]=status&op[status]==&v[status][]=1&v[status][]=5&key=<API key>
</pre>

works. Thank you!

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

Admin Redmine さんが約2年前に更新

  • カテゴリREST API_32 にセット

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

いいね!0
いいね!0