Skip to content

Instantly share code, notes, and snippets.

@JogoShugh
Last active February 7, 2017 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JogoShugh/42d0273a92b70b607ceab1c59e0faef2 to your computer and use it in GitHub Desktop.
Save JogoShugh/42d0273a92b70b607ceab1c59e0faef2 to your computer and use it in GitHub Desktop.
Create Scope, Epics, Stories, Task and Tests
{
"front-version": "1.4.2.1",
"version": 3,
"nodes": [
{
"id": "BE8F33FF-B9A5-409D-831F-DC21EC15103A",
"lastModified": "2017-02-07T14:34:13.049-05:00",
"name": "Batch Assets API",
"type": "Project"
},
{
"id": "2C0F32A7-0121-48C9-A729-CD81360CB533",
"lastModified": "2017-02-07T14:34:13.051-05:00",
"name": "_ Update Story status to Accepted",
"headers": [
{
"enabled": true,
"name": "Content-Type",
"value": "text\/yaml"
}
],
"metaInfo": {
"ownerId": "Local repository id"
},
"type": "Request",
"method": {
"requestBody": true,
"link": "http:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.3",
"name": "POST"
},
"body": {
"autoSetLength": true,
"textBodyEditorHeight": 351,
"textBody": "from: Story\nwhere:\n Timebox: Timebox:1004\nupdate:\n Status: StoryStatus:137",
"bodyType": "Text"
},
"headersType": "Form",
"uri": {
"host": "localhost",
"path": "\/VersionOne.Web\/api\/asset\/batch",
"scheme": {
"name": "http",
"version": "V11"
}
},
"parentId": "BE8F33FF-B9A5-409D-831F-DC21EC15103A"
},
{
"id": "59046630-62B4-4618-A0CE-34499AC534FB",
"lastModified": "2017-02-07T14:32:13.644-05:00",
"name": "002 Update Workitems move all to Iteration",
"headers": [
{
"enabled": true,
"name": "Content-Type",
"value": "text\/yaml"
}
],
"metaInfo": {
"ownerId": "Local repository id"
},
"type": "Request",
"method": {
"requestBody": true,
"link": "http:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.3",
"name": "POST"
},
"body": {
"autoSetLength": true,
"textBodyEditorHeight": 351,
"textBody": "from: Story\nupdate:\n Timebox: Timebox:1007",
"bodyType": "Text"
},
"headersType": "Form",
"uri": {
"host": "localhost",
"path": "\/VersionOne.Web\/api\/asset\/batch",
"scheme": {
"name": "http",
"version": "V11"
}
},
"parentId": "BE8F33FF-B9A5-409D-831F-DC21EC15103A"
},
{
"id": "6844BE1F-579A-4850-81A6-C3EEB909F726",
"lastModified": "2017-02-07T14:34:03.898-05:00",
"name": "_ QuickClose Story and Children w\/filter",
"headers": [
{
"enabled": true,
"name": "Content-Type",
"value": "text\/yaml"
}
],
"metaInfo": {
"ownerId": "Local repository id"
},
"type": "Request",
"method": {
"requestBody": true,
"link": "http:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.3",
"name": "POST"
},
"body": {
"autoSetLength": true,
"textBodyEditorHeight": 351,
"textBody": "from: Workitem\nfilter:\n- AssetType=\"Task\",\"Test\"\n- AssetState=\"64\"\nexecute: QuickClose\n---\nfrom: Story\nfilter:\n- AssetState='64'\nexecute: QuickClose",
"bodyType": "Text"
},
"headersType": "Form",
"uri": {
"host": "localhost",
"path": "\/VersionOne.Web\/api\/asset\/batch",
"scheme": {
"name": "http",
"version": "V11"
}
},
"parentId": "BE8F33FF-B9A5-409D-831F-DC21EC15103A"
},
{
"id": "6ECA6B95-207F-415A-AE5D-536C2AD8EC4C",
"lastModified": "2017-02-07T14:33:56.252-05:00",
"name": "_ Story Mass Edit Name",
"headers": [
{
"enabled": true,
"name": "Content-Type",
"value": "text\/yaml"
}
],
"metaInfo": {
"ownerId": "Local repository id"
},
"type": "Request",
"method": {
"requestBody": true,
"link": "http:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.3",
"name": "POST"
},
"body": {
"autoSetLength": true,
"textBodyEditorHeight": 351,
"textBody": "from: Story\nwhere:\n Timebox: Timebox:1004\nupdate:\n Name: MASS EDIT",
"bodyType": "Text"
},
"headersType": "Form",
"uri": {
"host": "localhost",
"path": "\/VersionOne.Web\/api\/asset\/batch",
"scheme": {
"name": "http",
"version": "V11"
}
},
"parentId": "BE8F33FF-B9A5-409D-831F-DC21EC15103A"
},
{
"id": "B43DE661-F3AD-4D97-B4FB-FFAA57805237",
"lastModified": "2017-02-07T14:32:57.533-05:00",
"name": "004 QuickClose Story and Children",
"headers": [
{
"enabled": true,
"name": "Content-Type",
"value": "text\/yaml"
}
],
"metaInfo": {
"ownerId": "Local repository id"
},
"type": "Request",
"method": {
"requestBody": true,
"link": "http:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.3",
"name": "POST"
},
"body": {
"autoSetLength": true,
"textBodyEditorHeight": 351,
"textBody": "from: Workitem\nfilter:\n- AssetType=\"Task\",\"Test\"\nexecute: QuickClose\n---\nfrom: Story\nexecute: QuickClose",
"bodyType": "Text"
},
"headersType": "Form",
"uri": {
"host": "localhost",
"path": "\/VersionOne.Web\/api\/asset\/batch",
"scheme": {
"name": "http",
"version": "V11"
}
},
"parentId": "BE8F33FF-B9A5-409D-831F-DC21EC15103A"
},
{
"id": "B68CC9B2-6C09-4AE0-B9ED-9A8F47BBE7A7",
"lastModified": "2017-02-07T14:33:19.402-05:00",
"name": "006 Delete Task, Test, Story and Epic, Scope",
"headers": [
{
"enabled": true,
"name": "Content-Type",
"value": "text\/yaml"
}
],
"metaInfo": {
"ownerId": "Local repository id"
},
"type": "Request",
"method": {
"requestBody": true,
"link": "http:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.3",
"name": "POST"
},
"body": {
"autoSetLength": true,
"textBodyEditorHeight": 351,
"textBody": "from: Workitem\nfilter:\n- AssetType='Task','Test'\nexecute: Delete\n---\nfrom: Story\nexecute: Delete\n---\nfrom: Epic\nexecute: Delete\n---\nfrom: Scope\nfilter:\n- ID!=\"Scope:0\"\nexecute: Delete",
"bodyType": "Text"
},
"headersType": "Form",
"uri": {
"host": "localhost",
"path": "\/VersionOne.Web\/api\/asset\/batch",
"scheme": {
"name": "http",
"version": "V11"
}
},
"parentId": "BE8F33FF-B9A5-409D-831F-DC21EC15103A"
},
{
"id": "EF6A2963-B3F8-4083-90FF-830DC59A6A8C",
"lastModified": "2017-02-07T14:33:10.161-05:00",
"name": "005 Reactivate Story, Task, Test",
"headers": [
{
"enabled": true,
"name": "Content-Type",
"value": "text\/yaml"
}
],
"metaInfo": {
"ownerId": "Local repository id"
},
"type": "Request",
"method": {
"requestBody": true,
"link": "http:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.3",
"name": "POST"
},
"body": {
"autoSetLength": true,
"textBodyEditorHeight": 351,
"textBody": "from: Workitem\nfilter:\n- AssetType='Story','Task','Test'\nexecute: Reactivate",
"bodyType": "Text"
},
"headersType": "Form",
"uri": {
"host": "localhost",
"path": "\/VersionOne.Web\/api\/asset\/batch",
"scheme": {
"name": "http",
"version": "V11"
}
},
"parentId": "BE8F33FF-B9A5-409D-831F-DC21EC15103A"
},
{
"id": "F1094CA0-1AAD-4DBE-A8AA-7C6DF0C32E9A",
"lastModified": "2017-02-07T14:32:01.310-05:00",
"name": "001 Create Scope with nested Epics and descendants w\/YAML",
"headers": [
{
"enabled": true,
"name": "Content-Type",
"value": "text\/yaml"
},
{
"enabled": true,
"name": "Authorization",
"value": "Basic YWRtaW46YWRtaW4="
}
],
"metaInfo": {
"ownerId": "Local repository id"
},
"type": "Request",
"method": {
"requestBody": true,
"link": "http:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.3",
"name": "POST"
},
"body": {
"autoSetLength": true,
"textBodyEditorHeight": 351,
"textBody": "AssetType: Scope\nName: My New Project\nOwner: Member:20\nParent: Scope:0\nBeginDate: 2\/11\/2017 5:00:00 PM\nDescription: This is my new project\nSchedule: Schedule:1000\nWorkitems:\n- AssetType: Epic\n Name: First Epic\n Description: First epic description\n Subs:\n - AssetType: Story\n Name: My First Story in My New Project\n Children:\n - AssetType: Test\n Name: Test 1\n Description: First Story Test Description\n - AssetType: Task\n Name: Task 1\n Description: First Task Task Description\n - AssetType: Story\n Name: My Second Story in My New Project\n Status: StoryStatus:133\n Children:\n - AssetType: Test\n Name: Test 2\n Description: Second Story Test Description\n - AssetType: Task\n Name: Task 2\n Description: Second Story Task Description\n - AssetType: Story\n Name: My Third Story in My New Project\n Status: StoryStatus:134 \n Children:\n - AssetType: Test\n Name: Test 3\n Description: Third Story Test Description\n - AssetType: Task\n Name: Task 3\n Description: Third Story Task Description\n - AssetType: Story\n Name: My Fourth Story in My New Project\n Status: StoryStatus:135 \n Children:\n - AssetType: Test\n Name: Test 4\n Description: Fourth Story Test Description\n - AssetType: Task\n Name: Task 4\n Description: Fourth Story Task Description\n - AssetType: Story\n Name: My Fifth Story in My New Project\n Status: StoryStatus:133 \n Children:\n - AssetType: Test\n Name: Test 5\n Description: Fifth Story Test Description\n - AssetType: Task\n Name: Task 5\n Description: Fifth Story Task Description \n- AssetType: Epic\n Name: Second Epic\n Description: Second epic description\n Subs:\n - AssetType: Story\n Name: My First Story in My New Project\n Children:\n - AssetType: Test\n Name: Test 1\n Description: First Story Test Description\n - AssetType: Task\n Name: Task 1\n Description: First Task Task Description\n - AssetType: Story\n Name: My Second Story in My New Project\n Status: StoryStatus:133\n Children:\n - AssetType: Test\n Name: Test 2\n Description: Second Story Test Description\n - AssetType: Task\n Name: Task 2\n Description: Second Story Task Description\n - AssetType: Story\n Name: My Third Story in My New Project\n Status: StoryStatus:134 \n Children:\n - AssetType: Test\n Name: Test 3\n Description: Third Story Test Description\n - AssetType: Task\n Name: Task 3\n Description: Third Story Task Description\n - AssetType: Story\n Name: My Fourth Story in My New Project\n Status: StoryStatus:135 \n Children:\n - AssetType: Test\n Name: Test 4\n Description: Fourth Story Test Description\n - AssetType: Task\n Name: Task 4\n Description: Fourth Story Task Description\n - AssetType: Story\n Name: My Fifth Story in My New Project\n Status: StoryStatus:133 \n Children:\n - AssetType: Test\n Name: Test 5\n Description: Fifth Story Test Description\n - AssetType: Task\n Name: Task 5\n Description: Fifth Story Task Description \n- AssetType: Epic\n Name: Third Epic\n Description: Third epic description\n Subs:\n - AssetType: Story\n Name: My First Story in My New Project\n Children:\n - AssetType: Test\n Name: Test 1\n Description: First Story Test Description\n - AssetType: Task\n Name: Task 1\n Description: First Task Task Description\n - AssetType: Story\n Name: My Second Story in My New Project\n Status: StoryStatus:133\n Children:\n - AssetType: Test\n Name: Test 2\n Description: Second Story Test Description\n - AssetType: Task\n Name: Task 2\n Description: Second Story Task Description\n - AssetType: Story\n Name: My Third Story in My New Project\n Status: StoryStatus:134 \n Children:\n - AssetType: Test\n Name: Test 3\n Description: Third Story Test Description\n - AssetType: Task\n Name: Task 3\n Description: Third Story Task Description\n - AssetType: Story\n Name: My Fourth Story in My New Project\n Status: StoryStatus:135 \n Children:\n - AssetType: Test\n Name: Test 4\n Description: Fourth Story Test Description\n - AssetType: Task\n Name: Task 4\n Description: Fourth Story Task Description\n - AssetType: Story\n Name: My Fifth Story in My New Project\n Status: StoryStatus:133 \n Children:\n - AssetType: Test\n Name: Test 5\n Description: Fifth Story Test Description\n - AssetType: Task\n Name: Task 5\n Description: Fifth Story Task Description",
"bodyType": "Text"
},
"headersType": "Form",
"uri": {
"host": "localhost",
"path": "\/VersionOne.Web\/api\/asset\/new",
"scheme": {
"name": "http",
"version": "V11"
}
},
"parentId": "BE8F33FF-B9A5-409D-831F-DC21EC15103A"
},
{
"id": "F12107D4-859F-4839-AFA9-3E12757A6DBD",
"lastModified": "2017-02-07T14:32:34.809-05:00",
"name": "003 Update Story status to Done",
"headers": [
{
"enabled": true,
"name": "Content-Type",
"value": "text\/yaml"
}
],
"metaInfo": {
"ownerId": "Local repository id"
},
"type": "Request",
"method": {
"requestBody": true,
"link": "http:\/\/tools.ietf.org\/html\/rfc7231#section-4.3.3",
"name": "POST"
},
"body": {
"autoSetLength": true,
"textBodyEditorHeight": 351,
"textBody": "from: Story\nwhere:\n Timebox: Timebox:1004\nupdate:\n Status: StoryStatus:135",
"bodyType": "Text"
},
"headersType": "Form",
"uri": {
"host": "localhost",
"path": "\/VersionOne.Web\/api\/asset\/batch",
"scheme": {
"name": "http",
"version": "V11"
}
},
"parentId": "BE8F33FF-B9A5-409D-831F-DC21EC15103A"
}
]
}
curl -i -X POST \
-H "Content-Type:text/yaml" \
-H "Authorization:Basic YWRtaW46YWRtaW4=" \
-d \
'AssetType: Scope
Name: My New Project
Owner: Member:20
Parent: Scope:0
BeginDate: 2/11/2017 5:00:00 PM
Description: This is my new project
Schedule: Schedule:1000
Workitems:
- AssetType: Epic
Name: First Epic
Description: First epic description
Subs:
- AssetType: Story
Name: My First Story in My New Project
Children:
- AssetType: Test
Name: Test 1
Description: First Story Test Description
- AssetType: Task
Name: Task 1
Description: First Task Task Description
- AssetType: Story
Name: My Second Story in My New Project
Status: StoryStatus:133
Children:
- AssetType: Test
Name: Test 2
Description: Second Story Test Description
- AssetType: Task
Name: Task 2
Description: Second Story Task Description
- AssetType: Story
Name: My Third Story in My New Project
Status: StoryStatus:134
Children:
- AssetType: Test
Name: Test 3
Description: Third Story Test Description
- AssetType: Task
Name: Task 3
Description: Third Story Task Description
- AssetType: Story
Name: My Fourth Story in My New Project
Status: StoryStatus:135
Children:
- AssetType: Test
Name: Test 4
Description: Fourth Story Test Description
- AssetType: Task
Name: Task 4
Description: Fourth Story Task Description
- AssetType: Story
Name: My Fifth Story in My New Project
Status: StoryStatus:133
Children:
- AssetType: Test
Name: Test 5
Description: Fifth Story Test Description
- AssetType: Task
Name: Task 5
Description: Fifth Story Task Description
- AssetType: Epic
Name: Second Epic
Description: Second epic description
Subs:
- AssetType: Story
Name: My First Story in My New Project
Children:
- AssetType: Test
Name: Test 1
Description: First Story Test Description
- AssetType: Task
Name: Task 1
Description: First Task Task Description
- AssetType: Story
Name: My Second Story in My New Project
Status: StoryStatus:133
Children:
- AssetType: Test
Name: Test 2
Description: Second Story Test Description
- AssetType: Task
Name: Task 2
Description: Second Story Task Description
- AssetType: Story
Name: My Third Story in My New Project
Status: StoryStatus:134
Children:
- AssetType: Test
Name: Test 3
Description: Third Story Test Description
- AssetType: Task
Name: Task 3
Description: Third Story Task Description
- AssetType: Story
Name: My Fourth Story in My New Project
Status: StoryStatus:135
Children:
- AssetType: Test
Name: Test 4
Description: Fourth Story Test Description
- AssetType: Task
Name: Task 4
Description: Fourth Story Task Description
- AssetType: Story
Name: My Fifth Story in My New Project
Status: StoryStatus:133
Children:
- AssetType: Test
Name: Test 5
Description: Fifth Story Test Description
- AssetType: Task
Name: Task 5
Description: Fifth Story Task Description
- AssetType: Epic
Name: Third Epic
Description: Third epic description
Subs:
- AssetType: Story
Name: My First Story in My New Project
Children:
- AssetType: Test
Name: Test 1
Description: First Story Test Description
- AssetType: Task
Name: Task 1
Description: First Task Task Description
- AssetType: Story
Name: My Second Story in My New Project
Status: StoryStatus:133
Children:
- AssetType: Test
Name: Test 2
Description: Second Story Test Description
- AssetType: Task
Name: Task 2
Description: Second Story Task Description
- AssetType: Story
Name: My Third Story in My New Project
Status: StoryStatus:134
Children:
- AssetType: Test
Name: Test 3
Description: Third Story Test Description
- AssetType: Task
Name: Task 3
Description: Third Story Task Description
- AssetType: Story
Name: My Fourth Story in My New Project
Status: StoryStatus:135
Children:
- AssetType: Test
Name: Test 4
Description: Fourth Story Test Description
- AssetType: Task
Name: Task 4
Description: Fourth Story Task Description
- AssetType: Story
Name: My Fifth Story in My New Project
Status: StoryStatus:133
Children:
- AssetType: Test
Name: Test 5
Description: Fifth Story Test Description
- AssetType: Task
Name: Task 5
Description: Fifth Story Task Description' \
'http://localhost/VersionOne.Web/api/asset/new'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment