@rui.branco/jira-mcp 1.7.4 → 1.7.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/index.js +2 -15
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3721,20 +3721,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
3721
3721
|
if (args.labels) {
|
|
3722
3722
|
fields.labels = args.labels;
|
|
3723
3723
|
}
|
|
3724
|
-
|
|
3725
|
-
if (args.team) {
|
|
3726
|
-
fields.customfield_10001 = await resolveTeamId(args.team, inst);
|
|
3727
|
-
} else {
|
|
3728
|
-
// Inherit team from parent ticket
|
|
3729
|
-
const parentIssue = await fetchJira(
|
|
3730
|
-
`/issue/${args.parentKey}?fields=customfield_10001`, {}, inst,
|
|
3731
|
-
);
|
|
3732
|
-
if (parentIssue.fields?.customfield_10001) {
|
|
3733
|
-
fields.customfield_10001 = parentIssue.fields.customfield_10001;
|
|
3734
|
-
} else if (inst.defaultTeam && inst.defaultTeam !== "none") {
|
|
3735
|
-
teamWarning = `\n\nNote: Parent ${args.parentKey} has no team assigned. Instance default team is "${inst.defaultTeam.name}". Use team parameter to assign it.`;
|
|
3736
|
-
}
|
|
3737
|
-
}
|
|
3724
|
+
// Subtasks inherit team from their parent in Jira — never send customfield_10001
|
|
3738
3725
|
|
|
3739
3726
|
const result = await fetchJira("/issue", { method: "POST", body: { fields } }, inst);
|
|
3740
3727
|
const newKey = result.key;
|
|
@@ -3742,7 +3729,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
3742
3729
|
content: [
|
|
3743
3730
|
{
|
|
3744
3731
|
type: "text",
|
|
3745
|
-
text: `Created subtask ${newKey} under ${args.parentKey}: ${args.summary}\nURL: ${inst.baseUrl}/browse/${newKey}
|
|
3732
|
+
text: `Created subtask ${newKey} under ${args.parentKey}: ${args.summary}\nURL: ${inst.baseUrl}/browse/${newKey}`,
|
|
3746
3733
|
},
|
|
3747
3734
|
],
|
|
3748
3735
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rui.branco/jira-mcp",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
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": {
|