Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to update existing issuelink using REST API?

Ravi August 3, 2023

Need help to understand How I can update/delete issueLink via update issue rest api.

I do understand we can add issuelink using below format
```
.
.
.

"update": {

    "issuelinks": {

        "add": {......}

    }

}
```


However same can not be true for remove or edit.
I tried and got error: `'Linked Issues' does not support operation 'remove' Supported operation(s) are: 'add'`


Thanks

2 answers

0 votes
Ravi August 3, 2023

Hi @Bill Sheboy 

Thanks for your response.
Apology, if I missed to mentioned we are using Jira server (and not cloud API).

I agreed we have `Delete Issue Link` api available (i.e https://docs.atlassian.com/software/jira/docs/api/REST/8.2.0/#api/2/issueLink-deleteIssueLink), however, it not support batch operations.

Do we have any other ways which support batch deleting ??

Also, is there any possibility using update api only we can remove issueLink or edit issuelink (like https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-issueidorkey-put as mentioned about `update` section for edit/remove options)

Thanks

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2023

Not that I am aware of...You may want to also post this question in the developer community: https://community.developer.atlassian.com/

And as a suggestion: please try to keep your posts in the same conversation thread (that is, below the current one).  That will help people who look at this question see if there are multiple different suggestions / solutions.  Thanks!

Ravi August 4, 2023

Sure, thanks
I will post in developer community.

Reg replying in thread, I will keep this in mind :)

Like Bill Sheboy likes this
0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2023

Hi @Ravi -- Welcome to the Atlassian Community!

It appears there is a separate function for that:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-links/#api-rest-api-3-issuelink-linkid-delete

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events