Manually retry create remote

It may happen that initial synchronization fail. It can happen i.g. due to missing required field (create screen).

In most cases you will be able to retry create remote issue on Remote Issue Panel.


Due to some circumstances such as server failures, restoring from backup or other cause it may happen that IssueSYNC will not get response and your issue will be stuck in synchronizing state.

  1. Go to the issue view jira_base_URL/browse/issue_key
  2. Open development tools: right click and Inspect (chrome)
  3.  Open console tab:
    image-2019-06-04-16-22-31-260.png
  4. Paste this script to the console input:

    Retry create remote script
    let retryCreateRemoteManually = (syncIssue) => {
    	AJS.$.ajax({
                    url: AJS.params.baseURL + '/rest/synchronizer/1.0/retry/hard/createremote',
                    type: 'POST',
                    data: JSON.stringify(syncIssue),
                    dataType: 'json',
                    contentType: 'application/json',
                    success: function(result) {
    					location.reload();
                    }
                });
    }
    
    AJS.$.ajax({
    url: AJS.params.baseURL + `/rest/synchronizer/1.0/synchronizedIssues/issue?key=${JIRA.Issue.getIssueKey()}&id=${JIRA.Issue.getIssueId()}`,
            type: "GET",
    		method: "GET",
            dataType: "json",
            contentType: "application/json; charset=utf8",
            success: function(syncIssues) {
                if (!!syncIssues && syncIssues.length > 0) {
    				syncIssues.filter(issue => !issue.remoteIssueId)
    				.forEach(syncIssue => {
    				let temp = {
    					issueId: syncIssue.issueId,
    					contractId: syncIssue.contextId,
    					syncIssueId: syncIssue.id 
    				}
    				retryCreateRemoteManually(temp);
    				});
    			}
            }
    })
    
    
    
  5. Hit enter

Your browser page will automatically reloaded.