SOAP API v5 Requirement Custom Properties that are Lists

Wednesday, May 8, 2019
Avatar

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

 

3 Replies
Wednesday, May 8, 2019
Avatar
re: wmenton Wednesday, May 8, 2019

Correction to the above (first sentence):  "project-artifact specific ordinal"

Sunday, May 12, 2019
Avatar
inflectra.jimx
re: wmenton Wednesday, May 8, 2019

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

Wednesday, May 22, 2019
Avatar
re: inflectra.jimx Sunday, May 12, 2019

Hi Jim,

In your examples

  • lob.IntegerValue = 1
  • lob.IntegerListValue = new List<int>() { 1,2,3 };

are the values the positional value of the list member, or the ValueID (ex: PV:134 would be 134)

Thanks,

Will Menton

 

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, May 8, 2019
  • Last Reply: Wednesday, May 22, 2019
  • Replies: 3
  • Views: 4351