Create Issue with REDMINE CUSTOM FIELDS

Moderators: Amaradana, TurboPT, TL Developers

Create Issue with REDMINE CUSTOM FIELDS

Postby fman » Thu Aug 13, 2015 10:15 am

MOVED
===========================
Hi,

I have troubles with custom fields

My redmine issues.xml is like this:

(...)

<issue>
<id>56661</id>
<project id="121" name="SAAA"/>

(...)

<custom_fields type="array">
<custom_field id="2" name="CF2">
<value>Value1</value>
</custom_field>
<custom_field id="47" name="CF47">
<value>Value47</value>
</custom_field>
</custom_fields>

(...)

My issuetracker configuraton (TestLink) is:

(...)

<attributes>
<custom_fields type="array">
<custom_field name="CF2" id="2">
<value>Value1</value>
</custom_field>
<custom_field name="CF47" id="47">
<value>Value47</value>
</custom_field>
</custom_fields>
</attributes>

Error is (in new issue creation from TestLink):


[15/Aug/13 08:28:26][WARNING][bc0db0n44h7dsrivuo6egkuh46][GUI]
E_NOTICE
Array to string conversion - in /var/www/testlink/lib/issuetrackerintegration/redminerestInterface.class.php - Line 393
[15/Aug/13 08:28:26][WARNING][bc0db0n44h7dsrivuo6egkuh46][GUI]
Create REDMINE Ticket FAILURE => redmine::_requesturl:http://10.102.225.93:82/redmine - response:{"url":"http:\/\/10.102.225.93:82\/redmine\/issues.xml","content_type":"application\/xml; charset=utf-8","http_code":500,"header_size":354,"request_size":521,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.057031,"namelookup_time":5.4e-5,"connect_time":6.4e-5,"pretransfer_time":0.000182,"size_upload":227,"size_download":116,"speed_download":2033,"speed_upload":3980,"download_content_length":116,"upload_content_length":227,"starttransfer_time":0.056976,"redirect_time":0,"redirect_url":"","primary_ip":"10.102.225.93","certinfo":[],"primary_port":82,"local_ip":"10.102.225.98","local_port":36447} - content: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<hash>\n <status>500<\/status>\n <error>Internal Server Error<\/error>\n<\/hash>\n"
[15/Aug/13 08:28:26][WARNING][bc0db0n44h7dsrivuo6egkuh46][GUI]
E_NOTICE
Undefined variable: issue - in /var/www/testlink/lib/issuetrackerintegration/redminerestInterface.class.php - Line 409
[15/Aug/13 08:28:26][WARNING][bc0db0n44h7dsrivuo6egkuh46][GUI]
E_NOTICE
Undefined offset: 1 - in /var/www/testlink/lib/execute/bugAdd.php - Line 34
[15/Aug/13 08:28:26][WARNING][bc0db0n44h7dsrivuo6egkuh46][GUI]
E_NOTICE
Undefined offset: 0 - in /var/www/testlink/lib/execute/bugAdd.php - Line 34
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: Create Issue with REDMINE CUSTOM FIELDS

Postby fman » Wed Aug 19, 2015 6:53 pm

fixed on next stable release (you can get code from github)
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am


Return to Redmine



Who is online

Users browsing this forum: No registered users and 1 guest