Permalink
Browse files

add: CustomField-Tracker-Relations

  • Loading branch information...
1 parent 2c49204 commit c7d577ebe8203a3086294b4836cf54918ba64e03 Sven Krzyzak committed Nov 26, 2010
@@ -4,6 +4,7 @@ xml.trackers :xmlns => 'http://redmin-mylyncon.sf.net/api', :api=>api_version do
xml.tracker :id => tracker.id do
xml.name tracker.name
xml.position tracker.position
+ xml.issueCustomFields integer_list(tracker.custom_fields)
end
end
end
@@ -1,7 +1,7 @@
require File.dirname(__FILE__) + '/../test_helper'
class MylynConnector::TrackersControllerTest < MylynConnector::ControllerTest
- fixtures :trackers
+ fixtures :trackers, :custom_fields, :custom_fields_trackers
def setup
super
@@ -22,6 +22,7 @@ def test_all
tr = {:tag => 'tracker', :attributes => {:id => 3}, :parent => trs}
assert_tag :tag => 'name', :content => 'Support request', :parent => tr
assert_tag :tag => 'position', :content => '3', :parent => tr
+ assert_tag :tag => 'issuecustomfields', :content=> '2 6', :parent => tr
end
@@ -6,10 +6,15 @@
elementFormDefault="qualified" >
<xsd:include schemaLocation="property.xsd" />
+ <xsd:include schemaLocation="idList.xsd" />
<xsd:complexType name="tracker">
<xsd:complexContent>
- <xsd:extension base="tns:sortedProperty" />
+ <xsd:extension base="tns:sortedProperty">
+ <xsd:sequence>
+ <xsd:element name="issueCustomFields" type="tns:idList"/>
+ </xsd:sequence>
+ </xsd:extension>
</xsd:complexContent>
</xsd:complexType>

0 comments on commit c7d577e

Please sign in to comment.