stable
Clone or download
story #8206 Work with "values by field" for GET on /artifacts/:id
We return the value_by_field attribute in the artifact's REST representation. Example (in XML): <values></values> <values_by_field> <summary>bug 1</summary> <float>2.87</float> <int>78</int> <remaining_effort>0</remaining_effort> <severity> <item> <id>1935</id> <label>4</label> </item> <item> <id>1936</id> <label>Major</label> </item> </severity> <cc> <item> <id>o10</id> <label>email@example.com</label> </item> <item> <id>b102</id> <label>Test (testman)</label> </item> </cc> <date>2015-07-07T00:00:00+02:00</date> <acceptance_criteria> <format>text</format> <content>I should be displayed with Text format</content> </acceptance_criteria> </values_by_field> The fields that are handled are: * Field int/float * Field string/text * Field lists (selectbox, multi selectbox, radio button, checkbox) * Field open lists * Field date (with and without time) Change-Id: I9ba8dbe826cf50991b46a5a333202e3431c27592
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/REST/Artifact/ArtifactRepresentation.class.php | +9 | −3 | Go to diff View file |
M | plugins/tracker/include/REST/Artifact/ArtifactRepresentationBuilder.class.php | +67 | −2 | Go to diff View file |
M | plugins/tracker/include/REST/v1/ArtifactsResource.class.php | +16 | −3 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue.class.php | +23 | −5 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_ArtifactLink.class.php | +8 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Date.class.php | +15 | −7 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_File.class.php | +9 | −6 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Float.class.php | +9 | −6 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Integer.class.php | +10 | −8 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_List.class.php | +15 | −6 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Numeric.class.php | +6 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_PermissionsOnArtifact.class.php | +9 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_String.class.php | +9 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Text.class.php | +15 | −6 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php | +9 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Value.class.php | +9 | −0 | Go to diff View file |
M | plugins/tracker/tests/REST_Backend/Artifact/ArtifactRepresentationBuilderTestPHP53.php | +49 | −1 | Go to diff View file |
M | plugins/tracker/tests/Tracker_Artifact_ChangesetValue_DateTest.php | +55 | −39 | Go to diff View file |
M | plugins/tracker/tests/Tracker_Artifact_ChangesetValue_FloatTest.php | +69 | −52 | Go to diff View file |
M | plugins/tracker/tests/Tracker_Artifact_ChangesetValue_IntegerTest.php | +57 | −32 | Go to diff View file |
M | plugins/tracker/tests/Tracker_Artifact_ChangesetValue_ListTest.php | +136 | −95 | Go to diff View file |
M | plugins/tracker/tests/Tracker_Artifact_ChangesetValue_OpenListTest.php | +93 | −59 | Go to diff View file |
A | plugins/tracker/tests/Tracker_Artifact_ChangesetValue_StringTest.php | +34 | −0 | Go to diff View file |
M | plugins/tracker/tests/Tracker_Artifact_ChangesetValue_TextTest.php | +46 | −21 | Go to diff View file |
M | plugins/tracker/tests/rest/XML/ArtifactTest.php | +54 | −0 | Go to diff View file |
M | plugins/tracker/tests/rest/_fixtures/Tracker_epic.xml | +448 | −1050 | Go to diff View file |