Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > SpiraTeam Issues & Qu... > SOAP API v5 Requirement C...
Hello,
By trial and error, I figured out that RemoteArtifactCustomProperty.PropertyNumber refers to the project-property specific ordinal value.
And I have successfully insert string values to custom fields like this:
RemoteArtifactCustomProperty lob = new RemoteArtifactCustomProperty();lob.PropertyNumber = 1;lob.StringValue = "Liability";req.CustomProperties = new RemoteArtifactCustomProperty[] { lob };
But I can't figure out how to insert a value when the property is bound to a List.Using the above example, assuming that the value listed is a valid value on the List that the CustomProperty uses: How do I insert a value?
Thanks in advance,Will Menton
Correction to the above (first sentence): "project-artifact specific ordinal"
Hi Will,
You should use the following for a single-valued list:
lob.IntegerValue = 1
and the following for a multi-valued list:
lob.IntegerListValue = new List<int>() { 1,2,3 };
Regards
Jim
Hi Jim,
In your examples
are the values the positional value of the list member, or the ValueID (ex: PV:134 would be 134)
Thanks,
Will Menton
And if you have any questions, please email or call us at +1 (202) 558-6885