Forums

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

How to programatically create Application link and configure it programatically using APIs

aprakash6904
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 29, 2019

I am using the below json to create an application link,

{
"applicationLink": {
"typeId": "generic",
"name": "myapp",
"displayUrl": "https://jira-server.msteams-atlassian.com",
"rpcUrl": "https://jira-server.msteams-atlassian.com",
"isPrimary": false,
"isSystem": true
},
"username": "admin",
"password": "admin",
"customRpcURL": false,
"rpcUrl": "",
"createTwoWayLink": false,
"configFormValues": {
"trustEachOther": false,
"shareUserbase": false
}
}

Application link is created- OK

But, when I try to add the further configuration of oauth authentication using json, it is not working. Error 404/500/consumer key not found, kindly suggest

{
"applicationLink": {
"typeId": "generic",
"name": "Microsoft Teams",
"displayUrl": "https://jira-server.msteams-atlassian.com",
"rpcUrl": "https://jira-server.msteams-atlassian.com",
"isPrimary": false,
"isSystem": true
},
"consumerKey": "OauthKey",
"consumerName": "MicrosoftTeamsIntegration",
"publicKey": "xyz"
"customRpcURL": false,
"rpcUrl": "",
"createTwoWayLink": false,
"configFormValues": {
"trustEachOther": false,
"shareUserbase": false
}
}

Kindly let me know the json format for complete configuration? Also how to programmatically configure application link using correct json

1 answer

0 votes
Khilendra Sahu October 15, 2020

@aprakash6904  I have got same issue. 

Do you solve the situation?

Suggest an answer

Log in or Sign up to answer