Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I create/update an Application Link (using an [REST/java] API) in any Atlassian application?

Alex M December 15, 2013

Or do I need to hack the database to do so?

Cheers!

5 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Alex M December 18, 2013
2 votes
Cesar Cruz Alvarez June 29, 2017

Hi guys, to create a new AppLink from the REST API, this is the URL and the payload.

http://localhost:2990/jira/rest/applinks/1.0/applicationlinkForm/createAppLink

{
"applicationLink": {
"typeId": "generic",
"name": "myapp",
"displayUrl": "http://localhost",
"rpcUrl": "http://localhost",
"isPrimary": false,
"isSystem": true
},
"username": "admin",
"password": "admin",
"customRpcURL": false,
"rpcUrl": "",
"createTwoWayLink": false,
"configFormValues": {
"trustEachOther": false,
"shareUserbase": false
},
"orphanedTrust": null
}

Karthik dharmalingam January 8, 2018

Hi, I got 401 unauthorized error response while sending this request using postman. Can you explain how to give the payload details as json? Is there any document for it? 

Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 19, 2019

@Karthik dharmalingam  401 unauthorized means that you didn't authenticate the REST API call correctly. Can you provide more details on what you have done?

Also, for further details on this you might want to see the following thread: https://community.atlassian.com/t5/Jira-Software-questions/Jira-cloud-addon-use-API-to-create-oauth1-application-link/qaq-p/1134043

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 19, 2019

I know this is an old thread, and I know that @Cesar Cruz Alvarez  already showed the way to create applinks via REST API, however you can look at the below thread for more details and examples on this topic:

 

Have a nice weekend!

Dario

0 votes
Bruno Ballekens December 18, 2013

Yes, but I wanted a REST api (I needed it in a shell script to link a fisheye repository to a jira project)

Alex M December 18, 2013

You can always extent the existing REST interface and use the Java API. ;)

True_Developer March 13, 2017

Hi, did you figure out the REST API for this? I am also looking for a REST API to configure Fisheye application links to JIRA

0 votes
Bruno Ballekens December 16, 2013

The applinks plugin (that provides the Application link functionality in all Atlassian applications) does have a rest interface. Unfortunately I did not find any doc about it.

However, you can view the wadl (Web application Description language), describing the API, at http://<atlassianapplication url>/rest/applinks/latest/application.wadl and start from there.

What certainly helps in figuring out how it works is doing what you want to do using the UI and trace the http traffic using wireshark (at least that helped me a lot)

Regards

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events