View GenerateTestSet.json
{
"ContextOid": "RegressionSuite:125538",
"ContextManager": {
"PrimaryScopeContext": "Scope:0",
"ScopeRollup": true,
"AssetContext": "Scope:11198",
"AssetListContext": "",
"Bubble": "Scope:0",
"ScopeLabel": "-"
},
View VBA.bas
Option Explicit
'Constants
Const V1METAURL = "/meta.v1"
Const V1RESTHISTURL = "/rest-1.v1/Hist"
Const V1RESTDATAURL = "/rest-1.v1/Data"
Const V1OAUTHHISTURL = "/rest-1.oauth.v1/Hist"
Const V1OAUTHDATAURL = "/rest-1.oauth.v1/Data"
Const V1LOCURL = "/loc.v1"
View OrYouCanGetWithThis.cs
public void CreateStoryWithConversation()
{
var v1 = V1Connector
.WithInstanceUrl(BaseUrl)
.WithUserAgentHeader("Sample", "0.0.0")
.WithUsernameAndPassword(UserName, Password);
var scope = "Scope:86271";
var name = $"Test Story {scope} Create story with conversation and mention";
View limit to N times.yaml
from: Epic
select:
- Name
- from-recursive[5]: Subs
select:
- Name
where:
Name: Denise Test Epic
View LotsOfAssets.json
[
{
"asset": "Scope",
"attributes": {
"Name": "My Project",
"Owner": "Member:20",
"Parent": "Scope:0",
"BeginDate": "7/15/2016 3:13:54 PM",
"Workitems": [
{
View AssetBatch.yaml
AssetType: Message
Name: My Test Message
Receipts:
- AssetType: MessageReceipt
Recipient: Member:20
---
AssetType: Message
Name: My Test Message
Receipts:
- AssetType: MessageReceipt
View Alternative approach with fluent queries.cs
var client = new VersionOneRestClient(V1_REST_API_URL, USERNAME, PASSWORD);
var results = client.Query("Story")
.Select("Name", "Status.Name", "AssetState", "IsDeleted")
.Where(
Or(
Equal("Name", "Story 1"),
NotEqual("AssetState", 64)
)
)
View Routes.text
// MvcCodeRouting v1.3.0
// Format: C# - Visual Basic
routes.MapRoute(null, "Areas/Roadmapping/Content/Images/{resourceName}",
new[] { "VersionOne.Web.Areas.Roadmapping.*" });
routes.MapRoute(null, "Areas/Roadmapping/Content/Styles/{resourceName}",
new[] { "VersionOne.Web.Areas.Roadmapping.*" });
routes.MapRoute(null, "Areas/Roadmapping/Content/Styles/images/{resourceName}",
View create-link.cs
View example.yaml
from: Scope
where:
Name: System (All Projects)
select:
- Name
- from: Children:Scope
select:
- Name
- from: Children:Scope
select: