@rui.branco/jira-mcp 1.6.13 → 1.6.15

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/index.js +5 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1477,7 +1477,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
1477
1477
  {
1478
1478
  name: "jira_add_comment",
1479
1479
  description:
1480
- "Add a comment to a Jira ticket. IMPORTANT: Use @DisplayName (e.g. @Julia Pereszta) for mentions NOT [~accountId:...] syntax. Keep comments non-technical and user-facing. Never mention git details like 'pushed to main', branch names, or technical implementation details stakeholders don't care about that. NEVER use em dashes (—) or en dashes (–) in comments — use commas, periods, or rewrite the sentence instead.",
1480
+ "Add a comment to a Jira ticket. IMPORTANT RULES: (1) Write comments at a HIGH LEVEL for stakeholders, product owners, and managers. Focus on WHAT was done and the business impact, NOT how it was done. Example: 'Implemented the new filtering feature for the dashboard' instead of 'Added a useEffect hook with debounced API calls to filter endpoint'. (2) NEVER mention technical details: no code, no function names, no file paths, no git branches, no commit hashes, no 'pushed to main', no framework-specific terms (React, Angular, hooks, components, etc.). (3) Use @DisplayName (e.g. @Julia Pereszta) for mentions, NOT [~accountId:...] syntax. (4) NEVER use em dashes (—) or en dashes (–), use commas, periods, or rewrite the sentence instead.",
1481
1481
  inputSchema: {
1482
1482
  type: "object",
1483
1483
  properties: {
@@ -2662,16 +2662,13 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
2662
2662
  }
2663
2663
  }
2664
2664
  if (args.description) {
2665
- const newParagraph = {
2666
- type: "paragraph",
2667
- content: [{ type: "text", text: args.description }],
2668
- };
2665
+ const adfContent = await buildCommentADF(args.description, inst);
2669
2666
  if (args.replaceDescription) {
2670
2667
  // Full replace
2671
2668
  fields.description = {
2672
2669
  version: 1,
2673
2670
  type: "doc",
2674
- content: [newParagraph],
2671
+ content: adfContent,
2675
2672
  };
2676
2673
  } else {
2677
2674
  // Append to existing (default)
@@ -2680,13 +2677,13 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
2680
2677
  );
2681
2678
  const existing = issue.fields?.description;
2682
2679
  if (existing && existing.content) {
2683
- existing.content.push(newParagraph);
2680
+ existing.content.push(...adfContent);
2684
2681
  fields.description = existing;
2685
2682
  } else {
2686
2683
  fields.description = {
2687
2684
  version: 1,
2688
2685
  type: "doc",
2689
- content: [newParagraph],
2686
+ content: adfContent,
2690
2687
  };
2691
2688
  }
2692
2689
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rui.branco/jira-mcp",
3
- "version": "1.6.13",
3
+ "version": "1.6.15",
4
4
  "description": "Jira MCP server for Claude Code - fetch tickets, search with JQL, update tickets, manage comments, change status, and get Figma designs",
5
5
  "main": "index.js",
6
6
  "bin": {