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.
Files changed (2) hide show
  1. package/build/tp.js +10 -17
  2. 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 = "Manual QA", projectId, teamId, entityStateId, tags, teamIterationId }) {
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
- "Id": config.tp.projectId
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
package/package.json CHANGED
@@ -27,7 +27,7 @@
27
27
  "engines": {
28
28
  "node": ">=20.x"
29
29
  },
30
- "version": "2.6.5",
30
+ "version": "2.6.6",
31
31
  "description": "MCP server for Tartget Process",
32
32
  "main": "build/index.js",
33
33
  "keywords": [