diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-22 17:36:17 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-22 17:36:17 +0300 |
| commit | 0a5b831276eb49c5f20b636f355f4495e4b74640 (patch) | |
| tree | 9006ca8ba03f48659531b50b4cc13854190b74c4 /Software/Visual_Studio/Tango.TFS | |
| parent | 30c4229b4b8cc3d515e50292c70c23dc847e441b (diff) | |
| download | Tango-0a5b831276eb49c5f20b636f355f4495e4b74640.tar.gz Tango-0a5b831276eb49c5f20b636f355f4495e4b74640.zip | |
Environment field to all bug reports.
disable console when !PPCAvailable
Retry after failed to retrieve environments from gateway.
Diffstat (limited to 'Software/Visual_Studio/Tango.TFS')
| -rw-r--r-- | Software/Visual_Studio/Tango.TFS/TeamFoundationServiceClient.cs | 11 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.TFS/WorkItem.cs | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.TFS/TeamFoundationServiceClient.cs b/Software/Visual_Studio/Tango.TFS/TeamFoundationServiceClient.cs index 11bdf2f2f..766f2da1e 100644 --- a/Software/Visual_Studio/Tango.TFS/TeamFoundationServiceClient.cs +++ b/Software/Visual_Studio/Tango.TFS/TeamFoundationServiceClient.cs @@ -36,6 +36,7 @@ namespace Tango.TFS public const String RESOLVED_REASON = "Microsoft.VSTS.Common.ResolvedReason"; public const String EMBEDDED_VERSION = "Custom.EmbeddedVersion"; public const String MACHINE_SN = "Custom.MachineSN"; + public const String ENVIRONMENT = "Custom.Environment"; } #endregion @@ -394,6 +395,16 @@ namespace Tango.TFS }); } + if (workItem.Environment != null) + { + patchDocument.Add(new JsonPatchOperation + { + Operation = Operation.Add, + Path = GetExtensionFieldNameForWrite(ExtensionFields.ENVIRONMENT), + Value = workItem.Environment, + }); + } + if (workItem.MachineSerialNumber != null) { patchDocument.Add(new JsonPatchOperation diff --git a/Software/Visual_Studio/Tango.TFS/WorkItem.cs b/Software/Visual_Studio/Tango.TFS/WorkItem.cs index 230f4a5ef..ef80fc217 100644 --- a/Software/Visual_Studio/Tango.TFS/WorkItem.cs +++ b/Software/Visual_Studio/Tango.TFS/WorkItem.cs @@ -183,6 +183,13 @@ namespace Tango.TFS } + private String _environment; + public String Environment + { + get { return _environment; } + set { _environment = value; RaisePropertyChangedAuto(); } + } + private String _comment; public String Comment { |
