@azure-devops/mcp 2.9.0-nightly.20260816 → 2.9.0-nightly.20260818
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools/work-items.js +13 -5
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/tools/work-items.js
CHANGED
|
@@ -647,8 +647,6 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
647
647
|
const ops = [
|
|
648
648
|
{ op: "add", path: "/id", value: `-${x + 1}` },
|
|
649
649
|
{ op: "add", path: "/fields/System.Title", value: item.title },
|
|
650
|
-
{ op: "add", path: "/fields/System.Description", value: encodedDescription },
|
|
651
|
-
{ op: "add", path: "/fields/Microsoft.VSTS.TCM.ReproSteps", value: encodedDescription },
|
|
652
650
|
{
|
|
653
651
|
op: "add",
|
|
654
652
|
path: "/relations/-",
|
|
@@ -664,9 +662,19 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
664
662
|
if (item.iterationPath && item.iterationPath.trim().length > 0) {
|
|
665
663
|
ops.push({ op: "add", path: "/fields/System.IterationPath", value: item.iterationPath });
|
|
666
664
|
}
|
|
667
|
-
if
|
|
668
|
-
|
|
669
|
-
|
|
665
|
+
// check if the work item type is "Bug" to determine which field to use for the description
|
|
666
|
+
// ReproSteps is used for Bugs, while Description is used for other work item types
|
|
667
|
+
if (workItemType.toLowerCase() === "bug") {
|
|
668
|
+
ops.push({ op: "add", path: "/fields/Microsoft.VSTS.TCM.ReproSteps", value: encodedDescription });
|
|
669
|
+
if (item.format && item.format === "Markdown") {
|
|
670
|
+
ops.push({ op: "add", path: "/multilineFieldsFormat/Microsoft.VSTS.TCM.ReproSteps", value: item.format });
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
else {
|
|
674
|
+
ops.push({ op: "add", path: "/fields/System.Description", value: encodedDescription });
|
|
675
|
+
if (item.format && item.format === "Markdown") {
|
|
676
|
+
ops.push({ op: "add", path: "/multilineFieldsFormat/System.Description", value: item.format });
|
|
677
|
+
}
|
|
670
678
|
}
|
|
671
679
|
return {
|
|
672
680
|
method: "PATCH",
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "2.9.0-nightly.
|
|
1
|
+
export const packageVersion = "2.9.0-nightly.20260818";
|