Skip to content

Commit

Permalink
Add fix for the ClosedDate field for reopened bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Hjelm committed Oct 7, 2023
1 parent c812788 commit 8aaf650
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,12 @@ private void CorrectClosedByAndClosedDate(WiRevision rev, WorkItem wi)
wiState.Equals("Done", StringComparison.InvariantCultureIgnoreCase)
|| wiState.Equals("Closed", StringComparison.InvariantCultureIgnoreCase)
)
&& revState.Equals("New", StringComparison.InvariantCultureIgnoreCase)
&& !(revState.Equals("Done", StringComparison.InvariantCultureIgnoreCase)
|| revState.Equals("Closed", StringComparison.InvariantCultureIgnoreCase))
)
{
rev.Fields.Add(new WiField() { ReferenceName = WiFieldReference.ClosedDate, Value = null });
rev.Fields.Add(new WiField() { ReferenceName = WiFieldReference.ClosedBy, Value = null });
rev.Fields.Add(new WiField() { ReferenceName = WiFieldReference.ClosedDate, Value = "" });
rev.Fields.Add(new WiField() { ReferenceName = WiFieldReference.ClosedBy, Value = "" });
}

if (
Expand Down

0 comments on commit 8aaf650

Please sign in to comment.