You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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/orINWARDISSUE
, 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)The text was updated successfully, but these errors were encountered: