The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Khilendra Sahu
October 15, 2020

@aprakash6904  I have got same issue. 

Do you solve the situation?