Monday, 19 August 2013

VersionOne rest API description attribute format

VersionOne rest API description attribute format

Successfully using the VersionOne API to create stories using the REST
API. Unfortunately the description field seems to strip all xml tags. (The
example online uses
, but this does not work)
So have something like:
POST /VersionOne/rest-1.v1/Data/Story HTTP/1.1
Content-Type: text/xml; charset=utf-8
Content-Length: 221
<Asset>
<Attribute name="Name" act="set">New Story</Attribute>
<Relation name="Scope" act="set">
<Asset idref="Scope:0" />
</Relation>
<Attribute name="Description" act="set">
<p>first line</p>
<p> second line</p>
</Attribute>
</Asset>
Any way to insert formatting? Basically we are using this as a story to
test our recently created artifact and want to refer to the
defects/stories that are included in the artifact. Any help much
appreciated, thanks.

No comments:

Post a Comment