Skip to content

Instantly share code, notes, and snippets.

@JogoShugh
JogoShugh / sample.txt
Created April 19, 2017 19:18
cURL samples
curl -i -X GET -H "Authorization:Bearer 1.ssLSvrWNRgUHG0/64uz6oczqVfw=" "http://localhost/VersionOneWin/rest-1.oauth.v1/Data/Member?where=IsSelf='true'"
curl -i -X GET -H "Authorization:Bearer 1.ssLSvrWNRgUHG0/64uz6oczqVfw=" 'http://localhost/VersionOneWin/rest-1.oauth.v1/Data/Member?where=IsSelf="true"'
curl -i -X GET -H "Authorization:Bearer 1.ssLSvrWNRgUHG0/64uz6oczqVfw=" "http://localhost/VersionOneWin/rest-1.oauth.v1/Data/Member?where=IsSelf=\"true\""
@JogoShugh
JogoShugh / create.yaml
Created March 27, 2017 15:40
Create Scope, Epics, Stories, Tasks, Tests, Member, TeamRoom, assign to Member
# Delete existing items
from: Workitem
filter:
- AssetType!='Epic'
- Scope.Name='SM Josh''s Project'
execute: Delete
---
from: Epic
where:
Scope.Name: SM Josh's Project
@JogoShugh
JogoShugh / VersionOne_Batch_Assets_API.json
Created February 9, 2017 18:20
VersionOne_Batch_Assets_API DHC Project
{"front-version":"1.4.2.1", "version":3, "nodes":[{"id":"BE8F33FF-B9A5-409D-831F-DC21EC15103A", "lastModified":"2017-02-09T13:16:36.146-05:00", "name":"VersionOne Batch Assets API", "type":"Project"},{"id":"07F1A78B-5F13-4833-A461-47ADF9BE0208", "lastModified":"2017-02-07T18:31:17.382-05:00", "name":"_ Execute QuickClose on Story Assets", "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":"from: Story\nwhere:\n Scope: Scope:0\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":"2726D020-6CD7-40DB-A48
@JogoShugh
JogoShugh / _ DHC Project.json
Last active February 7, 2017 19:37
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"
},
@JogoShugh
JogoShugh / GenerateTestSet.json
Created January 4, 2017 16:54
Generate Test Set
{
"ContextOid": "RegressionSuite:125538",
"ContextManager": {
"PrimaryScopeContext": "Scope:0",
"ScopeRollup": true,
"AssetContext": "Scope:11198",
"AssetListContext": "",
"Bubble": "Scope:0",
"ScopeLabel": "-"
},
@JogoShugh
JogoShugh / VBA.bas
Created October 10, 2016 18:56
VBA VersionOne Code
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"
@JogoShugh
JogoShugh / OrYouCanGetWithThis.cs
Last active September 28, 2016 13:58
CreateStoryWithConversation
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";
@JogoShugh
JogoShugh / limit to N times.yaml
Last active September 26, 2016 21:13
recursion query.v1
from: Epic
select:
- Name
- from-recursive[5]: Subs
select:
- Name
where:
Name: Denise Test Epic
@JogoShugh
JogoShugh / LotsOfAssets.json
Created September 22, 2016 15:03
Bunch of assets
[
{
"asset": "Scope",
"attributes": {
"Name": "My Project",
"Owner": "Member:20",
"Parent": "Scope:0",
"BeginDate": "7/15/2016 3:13:54 PM",
"Workitems": [
{
@JogoShugh
JogoShugh / AssetBatch.yaml
Created September 20, 2016 22:43
Asset batch
AssetType: Message
Name: My Test Message
Receipts:
- AssetType: MessageReceipt
Recipient: Member:20
---
AssetType: Message
Name: My Test Message
Receipts:
- AssetType: MessageReceipt