-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a Query for the Run at the end. (#51)
Added the generation of a query for the work items that were just created. To do this we added the following additional parameters: - `--targetQuery` - The query to create in the target project. Default is `SELECT [System.Id], [System.WorkItemType], [System.Title], [System.AreaPath],[System.AssignedTo],[System.State] FROM workitems WHERE [System.Parent] = @projectID`. - `--targetQueryTitle` - The title of the query to create in the target project. Default is `Project-@RunName - @projectTitle`. - `--targetQueryFolder` - The folder to create the query in the target project. Default is `Shared Queries`.
- Loading branch information
Showing
7 changed files
with
222 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace AzureDevOps.WorkItemClone.DataContracts | ||
{ | ||
|
||
public class Query | ||
{ | ||
public string id { get; set; } | ||
public string name { get; set; } | ||
public string path { get; set; } | ||
public QueryCreatedby createdBy { get; set; } | ||
public DateTime createdDate { get; set; } | ||
public QueryLastmodifiedby lastModifiedBy { get; set; } | ||
public DateTime lastModifiedDate { get; set; } | ||
public bool isFolder { get; set; } | ||
public bool hasChildren { get; set; } | ||
public bool isPublic { get; set; } | ||
public QueryLinks2 _links { get; set; } | ||
public string url { get; set; } | ||
} | ||
|
||
public class QueryCreatedby | ||
{ | ||
public string displayName { get; set; } | ||
public string url { get; set; } | ||
public QueryLinks _links { get; set; } | ||
public string id { get; set; } | ||
public string uniqueName { get; set; } | ||
public string imageUrl { get; set; } | ||
public string descriptor { get; set; } | ||
} | ||
|
||
public class QueryLinks | ||
{ | ||
public Avatar avatar { get; set; } | ||
} | ||
|
||
public class QueryAvatar | ||
{ | ||
public string href { get; set; } | ||
} | ||
|
||
public class QueryLastmodifiedby | ||
{ | ||
public string displayName { get; set; } | ||
public string url { get; set; } | ||
public QueryLinks1 _links { get; set; } | ||
public string id { get; set; } | ||
public string uniqueName { get; set; } | ||
public string imageUrl { get; set; } | ||
public string descriptor { get; set; } | ||
} | ||
|
||
public class QueryLinks1 | ||
{ | ||
public QueryAvatar1 avatar { get; set; } | ||
} | ||
|
||
public class QueryAvatar1 | ||
{ | ||
public string href { get; set; } | ||
} | ||
|
||
public class QueryLinks2 | ||
{ | ||
public QuerySelf self { get; set; } | ||
public QueryHtml html { get; set; } | ||
public QueryParent parent { get; set; } | ||
} | ||
|
||
public class QuerySelf | ||
{ | ||
public string href { get; set; } | ||
} | ||
|
||
public class QueryHtml | ||
{ | ||
public string href { get; set; } | ||
} | ||
|
||
public class QueryParent | ||
{ | ||
public string href { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters