Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titlePOST /connection/create/local request body
[  
   {  
      "id":1,
      "localKey":"key1", // this is normally generated automatically, because configuration is done via API calls, we have to create keys manually
      "remoteKey":"key2", // Connection2's local key
      "remoteUrl":"http://localhost:8080/jira1",
      "remoteJiraType":"SERVER",
      "name":"Connection1",
      "technicalUserId":1 // this is NOT Jira User id
   },
   {  
      "id":2,
      "localKey":"key2",
      "remoteKey":"key1", // Connection1's local key
      "remoteUrl":"http://localhost:8080/jira1",
      "remoteJiraType":"SERVER",
      "name":"Connection2",
      "technicalUserId":1 // this is NOT Jira User id
   }
]

...

Server and Passive Server (two Jira instances)

Both sides of the synchronization need to do this.

Code Block
languagejs
titlePOST /connection/create/server request body
[  
   {  
      "localKey":"localKey",
      "remoteJiraType":"SERVER", // or PASSVIE_SERVER
      "passive":false,
      "name":"RemoteConnection",
      "remoteUrl":"remoteJiraUrl.com",
      "technicalUserId":1
   }
]

...