Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Delete issue link #484

Open
darthwalsh opened this issue Jan 27, 2023 · 0 comments
Open

Feature request: Delete issue link #484

darthwalsh opened this issue Jan 27, 2023 · 0 comments

Comments

@darthwalsh
Copy link

A great feature would be the ability to use the Jira API to delete links.

Background

I can run jira issuelink ABC-384 Blocks ABC-401 now, but looking at issue.go I don't see a way to undo it.

The jira v2 API to delete links is to send a DELETE to URL /rest/api/2/issueLink/{linkId} (and the v3 API is the same).

Proposed design

Passing the linkid to the CLI seems tedious, so a command like jira issuelink --rm ABC-384 Blocks ABC-401 would be more usable.

Maybe the CLI would first query OUTWARDISSUE and/or INWARDISSUE, loop through the existing links, and remove any links matching the inward/outward direction specified?

If no links exist to remove, it would be treat the deletion as idempotent, and succeed anyways. This seems to be what jira issuelink does when the link already exists. Printing a warning message could be helpful, though (i.e. if the link only existed in the other direction)

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

No branches or pull requests

1 participant