Skip to content

Add issue URL to create and update operations output#17

Merged
alexec merged 3 commits intomainfrom
copilot/add-html-link-to-jira-issues
Nov 12, 2025
Merged

Add issue URL to create and update operations output#17
alexec merged 3 commits intomainfrom
copilot/add-html-link-to-jira-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 12, 2025

When creating or updating Jira issues, the CLI now prints the browsable URL to the issue in brackets on the same line.

Changes

CLI (main.go)

  • createIssue: Added URL output in brackets after successful creation
  • updateIssueStatus: Added URL output in brackets after status transition

MCP Server (mcp.go)

  • createIssueHandler and updateIssueStatusHandler: Modified signatures to accept host parameter and include URL in brackets in response text

Output

Successfully created issue: PROJ-123 (https://jira.foo.com/browse/PROJ-123)
Successfully updated issue PROJ-123 to status: In Progress (https://jira.foo.com/browse/PROJ-123)

URL format follows Jira's standard: https://<host>/browse/<issue-key> and is appended in brackets on the same line as the success message.

Original prompt

When creating or updating a Jira, don't just print the issue key. Also print the HTML link to the issue. E.g. http://jira.foo.com/browser/PROJ-123


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Nov 12, 2025
- Updated createIssue in main.go to print issue URL after creation
- Updated updateIssueStatus in main.go to print issue URL after update
- Updated createIssueHandler in mcp.go to include issue URL in response
- Updated updateIssueStatusHandler in mcp.go to include issue URL in response
- All existing tests pass

Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copilot AI changed the title [WIP] Add HTML link printing for Jira issues Add issue URL to create and update operations output Nov 12, 2025
Copilot AI requested a review from alexec November 12, 2025 22:07
@alexec
Copy link
Copy Markdown
Contributor

alexec commented Nov 12, 2025

@copilot Don't put the link on a new line, instead append it to the existing text in brackets.

- Updated CLI output to append URL in brackets
- Updated MCP handler responses to include URL in brackets
- Format: "Successfully ... (https://host/browse/KEY)"

Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 12, 2025

@copilot Don't put the link on a new line, instead append it to the existing text in brackets.

Done in edc5b8f. The URL is now appended in brackets on the same line.

Example output:

Successfully created issue: PROJ-123 (https://jira.foo.com/browse/PROJ-123)
Successfully updated issue PROJ-123 to status: In Progress (https://jira.foo.com/browse/PROJ-123)

@alexec alexec marked this pull request as ready for review November 12, 2025 23:06
@alexec alexec enabled auto-merge (squash) November 12, 2025 23:06
@alexec alexec merged commit fe06ce9 into main Nov 12, 2025
2 checks passed
@alexec alexec deleted the copilot/add-html-link-to-jira-issues branch November 12, 2025 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants