Thread

Skip Navigation LinksForums > SpiraTeam Forums > SpiraTeam Issues & Questi... > Custom Field in Soap Api ...

Custom Field in Soap Api V4 RSS Feed

Monday, February 4, 2013

I have updated from SOAP service v3 to v4. I have custom fields and in api v3 i could say

incident.Text01 = "abc"

 

After updating my service reference to v4, Text01 is not available. How can I update this custom field using the soap api?

Kind Regards,

Dimitri

1 Replies
Adam SAdam S
re: Dimitri Sturm on Monday, February 4, 2013
Monday, February 4, 2013

Hi Dimitri

In the new v4.0 API you can access the full spectrum of custom property types in v4.0 not just the text and list ones that are backwards-compatible with v3.0. The new syntax is a bit different though:

      remoteRequirement.CustomProperties = new RemoteArtifactCustomProperty[2];
      remoteRequirement.CustomProperties[0] = new RemoteArtifactCustomProperty() { PropertyNumber = 1, StringValue = "test value1" };
      remoteRequirement.CustomProperties[1] = new RemoteArtifactCustomProperty() { PropertyNumber = 2, IntegerValue = customValueId2 };

Regards

Adam

Tagged
Statistics
  • Started: 2/4/2013
  • Last Reply: 2/4/2013
  • Replies: 1
  • Views: 425
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.