feat(links): add first-class support for issue links#164
Merged
Conversation
aabb4eb to
47c0dce
Compare
Adds `jtk links` command group with full CRUD support for Jira issue links: - `jtk links list <issue-key>` — list all links on an issue - `jtk links create <outward> <inward> --type <name>` — create a link - `jtk links delete <link-id>` — delete a link - `jtk links types` — list available link types Includes API layer (api/links.go) and comprehensive unit tests for both API operations and command handlers.
When Jira returns InwardIssue, the current issue is the outward side (and vice versa). The direction labels were swapped.
47c0dce to
7f7f9d0
Compare
rianjs
added a commit
that referenced
this pull request
Feb 19, 2026
…DS.md Bring the dashboards (#165), links (#164), and text packages — added to main after the branch diverged — into alignment with the project coding standards applied by earlier commits in this branch: - Replace c.get/post/delete helpers with context-aware c.Get/Post/Delete - Convert testify assertions to shared/testutil helpers - Add _ = to unhandled json.NewEncoder errors (gosec G104) - Rename unused cmd/r parameters to _ (revive unused-parameter) - Add package doc comments (revive package-comments) - Wire context.Context through changeIssueType
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #148
Adds
jtk linkscommand group with full CRUD support for Jira issue links:jtk links list <issue-key>— list all links on an issue (table/JSON output)jtk links create <outward> <inward> --type <name>— create a link between two issuesjtk links delete <link-id>— delete a link by IDjtk links types— list available link types in the instanceUsage
Implementation
api/links.go):GetIssueLinks,CreateIssueLink,DeleteIssueLink,GetIssueLinkTypesinternal/cmd/links/): list, create, delete, types subcommandsjtk links,jtk link,jtk lTest plan
TestGetIssueLinks,TestCreateIssueLink,TestDeleteIssueLink,TestGetIssueLinkTypesTestRunList,TestRunCreate,TestRunDelete,TestRunTypes,TestRunCreate_InvalidTypegolangci-lint runclean