Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip closedDate field validation when closedDate field doesn't exist #2634

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Konop1992
Copy link

Handle case where there is no closed date field in target workitem. For us it didn't work for Shared parameter. We cannot modify shared parameter workitem in azure devops. Skip field didn't work.
image

Handle case where there is no closed date field in target workitem. For us it didn't work for Shared paramter. We cannot modify shared parameter workitem in azure devops. Skip field didn't work.
@Konop1992 Konop1992 requested a review from MrHinsh as a code owner February 21, 2025 08:46
@CLAassistant
Copy link

CLAassistant commented Feb 21, 2025

CLA assistant check
All committers have signed the CLA.

@@ -895,6 +895,12 @@ private void CheckClosedDateIsValid(WorkItemData sourceWorkItem, WorkItemData ta
{
closedDateField = "Microsoft.VSTS.Common.ClosedDate";
}
else if (!targetWorkItem.ToWorkItem().Fields.Contains("System.ClosedDate"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks odd as the closedDateField contians the closed data and only its contents should be checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants