Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmclnk/posh-vsts
posh-vsts
https://github.com/tmclnk/posh-vsts
azure-devops powershell-module vsts
Last synced: 13 days ago
JSON representation
posh-vsts
- Host: GitHub
- URL: https://github.com/tmclnk/posh-vsts
- Owner: tmclnk
- Created: 2018-09-14T22:36:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-07T20:57:39.000Z (over 1 year ago)
- Last Synced: 2024-11-12T23:16:12.875Z (2 months ago)
- Topics: azure-devops, powershell-module, vsts
- Language: PowerShell
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# POSH-Vsts
Powershell extension for VSTS# Example Usage
Initial setup
```powershell
PS> import-module -force VstsUtils.psm1# encrypts and stores this information in your home directory
# so it can be used in subsequent calls
PS> Set-VstsConfigSupply values for the following parameters:
AccountName: tommclaughlin
Project: testproject
User: [email protected]
Token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
```
### Get Work Item
```powershell
PS> Get-WorkItem 1 | ConvertTo-Json
{
"id": 1,
"rev": 15,
"fields": {
"System.AreaPath": "testproject",
"System.TeamProject": "testproject",
"System.IterationPath": "testproject",
"System.WorkItemType": "Task",
"System.State": "New",
"System.Reason": "New",
"System.AssignedTo": "McLaughlin, Tom \[email protected]\u003e",
"System.CreatedDate": "2018-10-22T20:53:15.1Z",
"System.CreatedBy": "McLaughlin, Tom \[email protected]\u003e",
"System.ChangedDate": "2018-10-25T20:43:26.997Z",
"System.ChangedBy": "McLaughlin, Tom \[email protected]\u003e",
"System.CommentCount": 3,
"System.Title": "test asdfad fasd f asdf asdfasdfasdf asd",
"Microsoft.VSTS.Common.StateChangeDate": "2018-10-22T20:53:15.1Z",
"Microsoft.VSTS.Common.Priority": 2,
"Custom.ServicePortalTicketId": "SR1540500206920",
"System.Description": "\u003cdiv\u003easdf\u003c/div\u003e\u003cdiv\u003easdf\u003c/div\u003e\u003cdiv\u003easdf\u003c/div\u003e\u003cdiv\u003easdf\u003c/div\u003e\u003cdiv\u003easdf\u003c/div\u003e"
},
"_links": {
"self": {
"href": "https://dev.azure.com/tommclaughlin/_apis/wit/workItems/1"
},
"workItemUpdates": {
"href": "https://dev.azure.com/tommclaughlin/_apis/wit/workItems/1/updates"
},
"workItemRevisions": {
"href": "https://dev.azure.com/tommclaughlin/_apis/wit/workItems/1/revisions"
},
"workItemHistory": {
"href": "https://dev.azure.com/tommclaughlin/_apis/wit/workItems/1/history"
},
"html": {
"href": "https://dev.azure.com/tommclaughlin/web/wi.aspx?pcguid=636b4784-c2cb-4309-98bc-7fa8e559b748\u0026id=1"
},
"workItemType": {
"href": "https://dev.azure.com/tommclaughlin/dc5329bd-bc74-48bb-af94-500843428988/_apis/wit/workItemTypes/Task"
},
"fields": {
"href": "https://dev.azure.com/tommclaughlin/_apis/wit/fields"
}
},
"url": "https://dev.azure.com/tommclaughlin/_apis/wit/workItems/1"
}```