targetprocess-mcp-server 2.6.4-a → 2.6.5
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/build/index.js +1 -3
- package/build/tp.js +9 -6
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -382,7 +382,6 @@ server.registerTool('create_bug_based_on_card', {
|
|
|
382
382
|
"Developer Raised",
|
|
383
383
|
"Operations",
|
|
384
384
|
])
|
|
385
|
-
.default("Manual QA")
|
|
386
385
|
.optional()
|
|
387
386
|
.describe('Where the bug was found, defaults to "Manual QA" if no origin was specified'),
|
|
388
387
|
projectId: z.string()
|
|
@@ -562,7 +561,6 @@ server.registerTool('create_bug', {
|
|
|
562
561
|
"Developer Raised",
|
|
563
562
|
"Operations",
|
|
564
563
|
])
|
|
565
|
-
.default("Manual QA")
|
|
566
564
|
.optional()
|
|
567
565
|
.describe('Where the bug was found, defaults to "Manual QA" if no origin was specified'),
|
|
568
566
|
projectId: z.string()
|
|
@@ -573,7 +571,7 @@ server.registerTool('create_bug', {
|
|
|
573
571
|
.describe('Optional Team ID — if user gave a team name, resolve it via "get_teams" first; defaults to TP_TEAM_ID from config'),
|
|
574
572
|
entityStateId: z.string()
|
|
575
573
|
.optional()
|
|
576
|
-
.describe('Optional Entity State ID — if user gave a state name, resolve it via "get_bug_workflows" first; defaults to "
|
|
574
|
+
.describe('Optional Entity State ID — if user gave a state name, resolve it via "get_bug_workflows" first; defaults to "Backlog" or "To Do"'),
|
|
577
575
|
tags: z.string()
|
|
578
576
|
.optional()
|
|
579
577
|
.describe('Optional comma-separated tags to apply, e.g. "regression, mobile"'),
|
package/build/tp.js
CHANGED
|
@@ -186,17 +186,12 @@ export class TpClient {
|
|
|
186
186
|
});
|
|
187
187
|
return response;
|
|
188
188
|
}
|
|
189
|
-
async createBug({ title, card, bugContent, origin
|
|
189
|
+
async createBug({ title, card, bugContent, origin, projectId, teamId }) {
|
|
190
190
|
const bug = {
|
|
191
191
|
"Name": title,
|
|
192
192
|
"Project": {
|
|
193
193
|
"Id": projectId || config.tp.projectId
|
|
194
194
|
},
|
|
195
|
-
"customFields": [{
|
|
196
|
-
"name": "Origin",
|
|
197
|
-
"type": "DropDown",
|
|
198
|
-
"value": origin
|
|
199
|
-
}],
|
|
200
195
|
"assignedTeams": [{
|
|
201
196
|
"team": {
|
|
202
197
|
"id": teamId || config.tp.teamId
|
|
@@ -204,6 +199,14 @@ export class TpClient {
|
|
|
204
199
|
}],
|
|
205
200
|
"Description": bugContent,
|
|
206
201
|
};
|
|
202
|
+
console.error(origin);
|
|
203
|
+
if (origin) {
|
|
204
|
+
bug["customFields"] = [{
|
|
205
|
+
"name": "Origin",
|
|
206
|
+
"type": "DropDown",
|
|
207
|
+
"value": origin
|
|
208
|
+
}];
|
|
209
|
+
}
|
|
207
210
|
if (card.type === "UserStory") {
|
|
208
211
|
bug["UserStory"] = { "Id": card.id };
|
|
209
212
|
}
|