My bad. The <Attribute name='AssetType' act='set'>Link</Attribute> attribute in the POST payload is obviously wrong - it is trying to set the asset's type (link) which does not make sense since I'm stating the type in URL already. It works perfectly without the attribute (as expected).
I was able to automate the retrieval of this report, but not through the V1 API. Through careful use of Fiddler and a C# script using WebClient to execute POST requests, it was possible. The resulting code is pretty fragile, though, since it isn't using the API.
The compilation warnings that you are getting are because VersionOne.SDK.APIClient is currently using internally V1APIconnector, and this warnings are only shown because, I guess, you are including VersionOne.SDK.APIClient inside your project, this approach is, sometimes, not advisable because you may miss updates. The best thing to do should be to...
I believe the discrepancy you are seeing is the result of member-based project access restrictions. The @Count summation is counting all stories that exist within that epic and state, but when you query for the list of individual stories, it is only listing the ones you have permission to see....
Is it possible to e.g. add a Link or an Expression to a Story where all you know is the Story Number (the user-visible bit)? No. The Number attribute is merely a text label. It has an association to an OID indirectly by virtue of the fact that it is...
You have a couple of things going on here. I will address your statement "My end goal would be to query TeamRooms and get team names from all the teams in the team room." Here is a working chunk of code that reads all of your TeamRooms and prints the...
V1APIConnector dataConnector = new V1APIConnector("YourVersionOne/rest-1.v1/","username", "password"); V1APIConnector metaConnector = new V1APIConnector("YourVersionOne/meta.v1/"); IMetaModel metaModel = new MetaModel(metaConnector); IServices services = new Services(metaModel, dataConnector); IAssetType actualType = metaModel.GetAssetType("Actual"); IAttributeDefinition dateAttribute = actualType.GetAttributeDefinition("Date"); IAttributeDefinition valueAttribute = actualType.GetAttributeDefinition("Value");...
The internal system name for a Member Group is MemberLabel. A MemberLabel asset has a multi-relation attribute called Members that you can use to add or remove members. This meta query shows you the attributes of the MemberLabel asset: http://localhost/versionone/meta.v1/MemberLabel?xsl=api.xsl To add a member to a MemberLabel, issue a HTTP...
From the details page of the Tests (created under the Story or Defect), under the "Edit" drop down is an option to "Generate Regression Test" for that workitem. Also , under the "Product Planning" tab is a link to the "Regression Tests" page. Here you can create new Regression Tests...
The problem is related to Caught Exception. There are 2 things happening at the same time. First, you have checked this property in Visual Studio Exceptions (Debug -> Exceptions -> Common Language Runtime Exception "Checked"). This option in VS stops code execution, even though they are properly handled. Second, the...
You can retrieve the last change comment for a Member asset using the ChangeComment attribute. Here's an example query to get the last ChangeComment that was specified for member 20: http://localhost/versionone/rest-1.v1/Data/Member/20?sel=Name,ChangeComment ...
There is an alternate way to specify the host address which is more reliable. Here's an example that you can try against the public VersionOne SDK testing instance: from v1pysdk import V1Meta with V1Meta ( instance_url = 'https://www14.v1host.com/v1sdktesting', username = 'admin', password = 'admin' ) as v1: new_story = v1.Story.create(...
I have no problems using curl with query.v1. It would help if you provided more about the problems executing the URL. The HTTP status code would be a good clue. Some potential problems: The query.v1 endpoint was introduced in VersionOne 13.2, Summer 2013. You would certainly see an error on...
This seems to fix it: proxyProvider: new ProxyProvider( new Uri("https://proxy.server:port"), "proxy_username", "proxy_password" ) I could've sworn whatever example I was using said to not include port. Apparently that was fallacious. Sorry for the trouble guys, but thanks for trying to help! Also, verified that mkunzi's answer is valid too. You...
When I looked at the Inner Exception I saw that the request was timing out which was causing the Invalid OID exception to be thrown. So if the OID is correct and you see this error thrown check if there is another web request interfering with the communication between your...
The list of available Defect types can be found with this URL query: http://{server}/{instance}/rest-1.v1/Data/DefectType One you have the OID of the DefectType value, and you know the OID number of the Defect that you want to update, you can issue an HTTP POST request with a URL like this: http://{server}/{instance}/rest-1.v1/Data/Defect/1234...
The Object Model libraries for both Java and .NET are in sunset now. For support reasons, I recommend against the Object Model. Also, the main reason for sunsetting the Object Model was poor performance that would require significant, breaking changes to fix. So for performance reasons, I also recommend against...
You can set the change comment for an API call by using the comment parameter in the URL of your HTTP POST. Using your example, the URL would be like this: /VersionOne/rest-1.v1/Data/Member?comment=Added+from+automation The XML payload would be just as you have it. Note that this also works for asset updates....