Defect #29158

API don't shows value label of a costum field

Added by Konrad Kreitmair about 4 years ago. Updated about 4 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:REST API
Target version:-
Resolution: Affected version:3.4.4

Description

General informations

Ruby version: 2.1.5-p273
Rails version: 4.2.8
Redmine version: 3.4.4.stable.17183

Informations about the specification of the custom field

Format: Key/value list
Multiple values: True
Display: checkboxes
Required: no
Used as a filter: no
Visible: to any users
Trackers: Patch
Projects: a subproject

The Problem

In the response of an API call for an issue (<url>/1234.xml) with an custom field specified, i find a custom field element like this:

<custom_field id="1" name="applied-to" multiple="true">
  <value type="array">
    <value>1</value>
    <value>2</value>
    <value>3</value>
  </value>
</custom_field>

So the problem is, that i get back the values of the custom field, but not the labels for this values.

When i visit the webpage for this issue, the labels of the values are displayed, so it is no permission issue.

History

#1 Updated by Go MAEDA about 4 years ago

  • Category set to REST API

Also available in: Atom PDF