Forums

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

How to add or remove external link from jira issue from a plugin

Subhajit Bhuiya July 4, 2018

I am working on a JIRA plugin which gets external links. I want to add/ remove those links from JIRA ISSUE. How can I do that programatically?

1 answer

1 accepted

2 votes
Answer accepted
Nir Haimov
Community Champion
July 4, 2018

Hi,

Please explain more about what you are trying to achieve...

I want to help, but you are not clear enough

Subhajit Bhuiya July 4, 2018

@Nir Haimov I am trying to integrate JIRA with test result of other tool. As a part of that I am writing a Jira plugin. Now as a part of that, the tool will call a servlet API of JIRA plugin and will pass the test result uri. I want to associate the test result uri wth the JIRA issue. There can be 1 or more such links. 

Subhajit Bhuiya July 4, 2018

@Nir Haimov I am looking for internal API for this rest api

POST http://localhost:8090/jira/rest/api/latest/issue/TST-1/remotelink

from https://developer.atlassian.com/server/jira/platform/jira-rest-api-for-remote-issue-links/

 

Because if I want to call it I will need a http client. But I am within JIRA process space, so looking for an direct JIRA API 

Nir Haimov
Community Champion
July 4, 2018

OK,

I understand now what you are trying to achieve.

But it seems like you got the solution (the link you sent me).

Where are you stuck in the process?

Subhajit Bhuiya July 5, 2018

I was looking for the JAVA API instead of REST API. At last got it from https://developer.atlassian.com/server/jira/platform/creating-remote-issue-links/

Subhajit Bhuiya July 5, 2018

@Nir Haimov Now instead of showing the links under External Link section, I want to show it under a custom field or a custom section (if possible, have a custom section to show those link) along with a add button and a delete button

Nir Haimov
Community Champion
July 5, 2018

@Subhajit Bhuiya

Follow this tutorial:

https://developer.atlassian.com/server/jira/platform/adding-content-to-the-jira-view-issue-page/

It will guide you to create a section in the issue view screen.

Once you will create the section just set it content to be your links and add any additional functionality you want

Subhajit Bhuiya July 5, 2018

thanks @Nir Haimov

Nir Haimov
Community Champion
July 5, 2018

@Subhajit Bhuiya you are welcome :)

If i solved your issue and there is nothing more you need, please close this question by marking my answer as the solution.

Subhajit Bhuiya July 6, 2018

@Nir Haimov done. I have raised few more doubt. Can you or anyone look into it

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events