stable

Clone or download

Read-only

Add "type" to artifact link value in POST and PUT

part of story #9651 PUT/POST /artifacts/:id with ALv2 natures You should be able to use both routes. Example of route call: { "tracker": { "id": 81 }, "values": [ { "field_id": 1796, "value": "test" }, {"field_id": 1809, "links": [{"id": 122, "type": "_is_child"}, {"id": 123, "type": "custom"}]} ] } Change-Id: I2e33853a2219df3486c8e0ccbef186e7858e5c4f

Modified Files

Name
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/FieldDataBuilder.php +108 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/SubmittedValueConvertor.php +3 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.class.php +32 −37 Go to diff View file
M plugins/tracker/include/autoload.php +3 −2 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_ArtifactLinkTest.php +101 −46 Go to diff View file