The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
Hello, syncing epics works, but only for issues for that specific project.
How to sync epics and its issues, when epic have issues from more projects?
Other projects should be also synchronised.
Jira <> Jira on premise instances
Let's use the component Accessor for this.
//getting Issue Manager component
def issueKeyFinder = ComponentAccessor.getComponent(IssueManager)
def idThisIssue = issueKeyFinder.getIssueByCurrentKey(issue.key)
def exalateId = nodeHelper.getLocalIssueFromRemoteUrn(replica?.relationid)?.key
def idIssueToBeLinked = issueKeyFinder.getIssueByCurrentKey(exalateId)
def sourceIssueId = idThisIssue.id
def destinationIssueId = idIssueToBeLinked.id
def linkTypeId = 10003
def sequence = 1L
def remoteUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def issueLinkManager = ComponentAccessor.getComponent(IssueLinkManager)
issueLinkManager.createIssueLink(sourceIssueId, destinationIssueId, linkTypeId, sequence, remoteUser)
© 2019 Exalate. All rights reserved.