プロジェクト

全般

プロフィール

Vote #70973

未完了

CRUD operations for "custom field definitions" (not setting custom fields on issues!)

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

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

0%

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

説明

my Redmine Java API tests check that a new Issue has some custom fields set.
to do that, I have to create those custom field definitions in Redmine manually first.

would be nice to improve the tests so that they could create the required custom fields in Redmine - but unfortunately Redmine's REST API does not allow that.
Again, I'm talking about creating custom fields definitions in Redmine install, not setting already defined custom fields on an Issue.

I understand that this operation would probably require an admin permission - that's fine.


journals

can you please take a look at this request?
--------------------------------------------------------------------------------
any chance of getting this implemented anytime soon?
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
I have a patch which implement only the 'R' part, that is lists the available custom fields, for admin users (redmine-customfields-rest.patch). It has been tested on Redmine 2.3.0 and 2.3.2.

And here is a wiki doc which would fit as http://www.redmine.org/projects/redmine/wiki/Rest_IssueCategories :

h1. Custom Fields

{{>toc}}

h2. /custom_fields.xml

h3. GET

Returns all custom field definitions.

+Example+:

<pre>
GET /custom_fields.xml
</pre>

+Response+:

<pre>
<?xml version="1.0" encoding="UTF-8"?>
<custom_fields type="array" limit="4" total_count="4" offset="0">
<custom_field>
<id>1</id>
<name>Foobarity</name>
<type>IssueCustomField</type>
<format>list</format>
<required>false</required>
<searchable>true</searchable>
<multiple_values>false</multiple_values>
<possible_values type="array">
<value>Foo</value>
<value>Bar</value>
<value>None</value>
</possible_values>
<default_value>None</default_value>
</custom_field>
...
</custom_fields>
</pre>

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

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

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

--------------------------------------------------------------------------------
Just to note, this is useful for another situation than that mentioned in the original description: we have a situation where a custom field dropdown list relates to some external references that change at regular intervals via an automated process.

It would be useful (and much tidier/safer) to be able to update this list via the REST API rather than our current solution of updating the @custom_fields@ DB table directly.
--------------------------------------------------------------------------------
Is there any chance to implement this feature? I'm developing app which needs to be tested with redmine. I'd like to automate process of creating development environment (auto install and config redmine with Docker), and i can create project, issues etc. but i can't create custom fields for tests :/ The only way is to copy prefilled DB which isn't the best solution in my case.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I would like to support this feature as we are also trying to implement some automation which involves CRUD operations on custom field administration.

* Add a new possible value of a list field
* Remove an existing possible value

thank you
--------------------------------------------------------------------------------


related_issues

relates,Closed,11159,REST API for getting CustomField definitions
relates,Closed,18966,API - Custom field creation
duplicates,Closed,18848,Expand custom field API
duplicates,Closed,35216,Create/Update custom fields via API

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

  • カテゴリREST API_32 にセット

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

いいね!0
いいね!0