プロジェクト

全般

プロフィール

Vote #69122

未完了

change "author" field format to have login, fname, lname instead of ambiguous "full name"

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

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

0%

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

説明

"author" and "assigned_to" fields included in "get issues" XML response have user full name under ambiguous "name" attribute:

can we have several separate attributes for "author" and "assigned_to" instead:

  • login
  • id
  • firstName
  • lastName ?

this would simplify the response parsing. I can't reconstruct firstName and lastName from this response without making a separate "getUsers()" call to the server, which seems unnecessary.


journals

--------------------------------------------------------------------------------
It should be possible to set author by all attributes only which have key property (login, email, internal id)
--------------------------------------------------------------------------------
related to #1739
--------------------------------------------------------------------------------
this is about the response from the server, not about setting values by the clients. we can't properly parse the server response from this combined "name" which actually contains a combination of first name, space, then last name - what if they contain spaces in names?..
--------------------------------------------------------------------------------
if anyone is working on REST API, is it possible to make this improvement? this can be made in a backward-compatible manner by adding new fields to the response.
--------------------------------------------------------------------------------

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

  • カテゴリREST API_32 にセット

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

いいね!0
いいね!0