6
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RedmineのREST APIのGET /issues/[id].xmlで取得した結果

Last updated at Posted at 2014-11-09

メモです。

<issue>
  <id>15</id>
  <project id="1" name="Test1"/>
  <tracker id="1" name="バグ"/>
  <status id="2" name="進行中"/>
  <priority id="2" name="通常"/>
  <author id="5" name="Redmine Ayweak"/>
  <assigned_to id="6" name="Redmine User1"/>
  <category id="1" name="カテゴリA"/>
  <fixed_version id="1" name="1.0.0"/>
  <subject>test</subject>
  <description>テスト
ABC
abc</description>
  <start_date>2014-11-04</start_date>
  <due_date/>
  <done_ratio>20</done_ratio>
  <is_private>false</is_private>
  <estimated_hours/>
  <spent_hours>0.0</spent_hours>
  <custom_fields type="array">
    <custom_field id="1" name="カスタムフィールド">
      <value>ABCabc</value>
    </custom_field>
    <custom_field id="2" name="かすたむふぃーるど">
      <value>https://www.google.com/</value>
    </custom_field>
  </custom_fields>
  <created_on>2014-11-03T16:42:49Z</created_on>
  <updated_on>2014-11-09T13:46:39Z</updated_on>
  <closed_on/>
</issue>

下記、公式 Wiki にある出力例は、カスタムフィールドのところの value 要素が抜けてたりします。


そもそもの生成処理がどうなっているか探してみました。以下で生成しているっぽいです。

以下のやりとりやテストデータを参考に、なんとなく生成方法が分かるような分からないような。

"api and file type rsb - Redmine"
http://www.redmine.org/boards/4/topics/31907
http://www.redmine.org/projects/redmine/repository/entry/trunk/test/unit/lib/redmine/views/builders/xml_test.rb

6
8
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?