I am looking to sync Epics and Stories from a Jira server to Azure Devops and maintain the parent/child relationship. I don’t need to sync from Azure Devops to JIRA. I just need a one-way sync from JIRA to Azure DevOps.
I was told this might work, but it does not. It does work for sub-task that have a parent Story, but not for Stories that have a parent Epic.
Outgoing JIRA:
replica.parentId = workItem.parentId
Incoming Azure Devops:
if (replica.parentId) { def localParent = syncHelper.getLocalIssueKeyFromRemoteId(replica.parentId.toLong()) if (localParent) { workItem.parentId = localParent.id }}