I want to synchronize issues from Jira Cloud to Azure DevOps. After first synchronization, the ADO-ID of the newly created issue should be set as a prefix to the origin issue in Jira. This should be done only after first synchronization.
Therefore, I try to use the following code:
Unfortunately it is not working. The ADO-ID in the related field is set but it is not set as a prefix to the summary. It seems that the block inside firstSync is not executed. What is wrong?
Can you please provide us outgoing and incoming sync script from both connectors, Jira Cloud and Azure DevOps ? Instead of sending whole script you can provide us the lines which are related to summary and ADO Id.
Actually I do not have access to the script in ADO. But I know that the syncBackAfterProcessing command is called in the AzureDevOps script and I can see all relevant fields in the entity sync status. The creation of the issue in ADO works correctly.
Outgoing script in Jira is:
I think the firstSync block you shared is from Jira, right?
And you said that the ticket starts in Jira as well.
If these things are correct, then yes, the firstSync block will not execute on Jira side (but its counterpart in ADO would execute in this scenario). If an ADO workItem was send to Jira for creation, only then this block would execute in Jira.