The documentation of the API doesn't say much about the actual POST body:
1. Where do you find your application name and type:
"application": { "name": "My Acme Tracker", "type": "com.acme.tracker" },
2. Where do you find globalId:
"globalId": "system=http://www.mycompany.com/support&id=1",
I have appLink setup for 2 Jira instances, I'm trying to link two Jira issues (one on each site) together.
Application name and type id seems to be from this undocumented API:
/rest/applinks/latest/applicationlink
You parse them out of the XML returned.
Global id seems to be used as the unique key for the remote link. You can pass whatever you want (I tried "whatever") and it will work. The same REST API is used to both create and update remote links, and the value of global id is what determines if you are updating or creating. So I can simply use the remote issue's URL as global id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With type set to "com.atlassian.jira", globalId needs to be:
appId=[Application Link ID]&issueId=[Issue ID]
But if you provide wrong issue id, the error message still only complains about your correct appId.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.