targetprocess-mcp-server 2.6.5 → 2.6.6
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/tp.js +10 -17
- package/package.json +1 -1
package/build/tp.js
CHANGED
|
@@ -289,17 +289,12 @@ export class TpClient {
|
|
|
289
289
|
param: { "format": "json" },
|
|
290
290
|
}, bug);
|
|
291
291
|
}
|
|
292
|
-
async createBugOnly({ title, bugContent, origin
|
|
292
|
+
async createBugOnly({ title, bugContent, origin, projectId, teamId, entityStateId, tags, teamIterationId }) {
|
|
293
293
|
const bug = {
|
|
294
294
|
"Name": title,
|
|
295
295
|
"Project": {
|
|
296
296
|
"Id": projectId || config.tp.projectId
|
|
297
297
|
},
|
|
298
|
-
"customFields": [{
|
|
299
|
-
"name": "Origin",
|
|
300
|
-
"type": "DropDown",
|
|
301
|
-
"value": origin
|
|
302
|
-
}],
|
|
303
298
|
"assignedTeams": [{
|
|
304
299
|
"team": {
|
|
305
300
|
"id": teamId || config.tp.teamId
|
|
@@ -307,6 +302,13 @@ export class TpClient {
|
|
|
307
302
|
}],
|
|
308
303
|
"Description": bugContent,
|
|
309
304
|
};
|
|
305
|
+
if (origin) {
|
|
306
|
+
bug["customFields"] = [{
|
|
307
|
+
"name": "Origin",
|
|
308
|
+
"type": "DropDown",
|
|
309
|
+
"value": origin
|
|
310
|
+
}];
|
|
311
|
+
}
|
|
310
312
|
if (entityStateId)
|
|
311
313
|
bug["EntityState"] = { "Id": entityStateId };
|
|
312
314
|
if (tags)
|
|
@@ -440,17 +442,8 @@ export class TpClient {
|
|
|
440
442
|
async createBugBasedOnUserStory(title, userStoryId, bugContent) {
|
|
441
443
|
const bug = {
|
|
442
444
|
"Name": title,
|
|
443
|
-
"Project": {
|
|
444
|
-
|
|
445
|
-
},
|
|
446
|
-
"UserStory": {
|
|
447
|
-
"Id": userStoryId
|
|
448
|
-
},
|
|
449
|
-
"customFields": [{
|
|
450
|
-
"name": "Origin",
|
|
451
|
-
"type": "DropDown",
|
|
452
|
-
"value": "Manual QA"
|
|
453
|
-
}],
|
|
445
|
+
"Project": { "Id": config.tp.projectId },
|
|
446
|
+
"UserStory": { "Id": userStoryId },
|
|
454
447
|
"assignedTeams": [{
|
|
455
448
|
"team": {
|
|
456
449
|
"id": config.tp.teamId
|