Skip to content

Commit e201cf3

Browse files
authored
Merge pull request #37 from typinghard/fix-160625
Fixing WorkItem update when no fields are sent | Including READ.md for Nuget.org
2 parents b9d9091 + bad4c79 commit e201cf3

File tree

3 files changed

+55
-5
lines changed

3 files changed

+55
-5
lines changed

src/AzureDevopsTracker.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
<PackageLicenseExpression></PackageLicenseExpression>
1111
<PackageProjectUrl>https://github.com/typinghard/azure-devops-tracker</PackageProjectUrl>
1212
<RepositoryUrl>https://github.com/typinghard/azure-devops-tracker</RepositoryUrl>
13-
<PackageIcon>adt_icon.png</PackageIcon>
13+
<PackageReadmeFile>README.md</PackageReadmeFile>
14+
<PackageIcon>adt_icon.png</PackageIcon>
1415
<PackageIconUrl />
1516
<RepositoryType>GitHub</RepositoryType>
1617
<PackageTags>Azure DevOps Tracker Columns State Tracking Track Board Scrum Kanbam Time Column Timing Workitem Worked Hours Team Performance</PackageTags>
1718
<NeutralLanguage>en</NeutralLanguage>
1819
<PackageLicenseFile>LICENSE.md.txt</PackageLicenseFile>
1920
<Description>A NuGet that allows you to use a Azure DevOps Service Hook to track workitems changes in a simply and detailed way.</Description>
2021
<AssemblyVersion>8.0.0.0</AssemblyVersion>
21-
<FileVersion>8.0.0</FileVersion>
22-
<Version>8.0.0</Version>
22+
<FileVersion>8.0.1</FileVersion>
23+
<Version>8.0.1</Version>
2324
<PackageReleaseNotes></PackageReleaseNotes>
2425
</PropertyGroup>
2526

@@ -28,6 +29,9 @@
2829
<Pack>True</Pack>
2930
<PackagePath></PackagePath>
3031
</None>
32+
33+
<None Include="README.md" Pack="true" PackagePath="\"/>
34+
3135
</ItemGroup>
3236

3337
<ItemGroup>

src/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
To Talk with us, join our Discord:
2+
[![Discord](https://img.shields.io/discord/901427875301974026?color=%235865f2&label=Join%20Typing%20Hard)](https://discord.gg/pbBNfNAYTH)
3+
4+
For a Technology Team Manager, the process improvement in search of agility and productivity is indispensable. For that, data is very important.
5+
6+
7+
However, for teams that use [Azure DevOps](https://dev.azure.com/) for managing their tasks, there isn't in-depth documentation about what happens to Work Items, and the available Azure DevOps Queries are limited.
8+
9+
With **Azure DevOps Tracker**, it will be possible to obtain detailed information about the cycle time of each Work Item, as all data is automatically stored in your SQL Server Database.
10+
11+
12+
The **Azure DevOps Tracker** brings automatically tracking of Workitems and will help managers with:
13+
### Statistics:
14+
✅ Of the Team
15+
16+
✅ From specific Team Members
17+
18+
✅ Total time per State
19+
20+
✅ Worked time per State
21+
22+
### Cycle time sampling of:
23+
24+
✅ An iteration or Sprint
25+
26+
✅ A Workitem
27+
28+
✅ A Project
29+
30+
### Changelog: With Azure DevOps Tracker you can easily inform what was done by your team. Actually, we have integration with Microsoft Teams and Discord!
31+
32+
### Possibility to connect to a BI Tool 📊
33+
### Your creativity is the limit! 🚀
34+
35+
36+
For instructions and examples, go to our [Wiki](https://github.com/typinghard/azure-devops-tracker/wiki).
37+
- [English](https://github.com/typinghard/azure-devops-tracker/wiki/English) 🇺🇸
38+
- [Português](https://github.com/typinghard/azure-devops-tracker/wiki/Português) 🇧🇷
39+
40+
41+
42+
Azure DevOps project link example:
43+
[Azure Devops - TypingHard](https://dev.azure.com/TypingHard/Typing%20Hard%20Project)
44+
45+
46+

src/Services/AzureDevopsTrackerService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ public static void AddWorkItemChange(WorkItem workItem, CreateWorkItemDto create
242242

243243
public void AddWorkItemChange(WorkItem workItem, UpdatedWorkItemDto update)
244244
{
245-
if (update.Resource.Fields.State is null) return;
246-
if (update.Resource.Fields.StateChangeDate is null) return;
245+
if (update?.Resource?.Fields?.State is null) return;
246+
if (update?.Resource?.Fields?.StateChangeDate is null) return;
247247

248248
var changedBy = update.Resource.Revision.Fields.ChangedBy ?? update.Resource.Fields.ChangedBy.NewValue;
249249
var workItemChange = ToWorkItemChange(workItem.Id,

0 commit comments

Comments
 (0)