Signature
Helper | nodeHelper |
Signature | getLocalIssueFromRemoteUrn (String remoteUrn) |
Description | Finds a local issue linked to the remote issue. |
Introduced in | 4.2.0 |
Parameters
remoteUrn | A key of the remote issue |
The method was improved for Jira Cloud in 4.5 version to include.
Helper | nodeHelper |
Signature | getLocalIssueFromRemoteUrn ( replica.customKeys.parentURN, "entity_name" ) |
Description | Returns BasicHubKey: the local issue key linked to the remote issue. |
Introduced in | 4.5.0 |
Example use
This method is used in External scripts to find the local issue using a key of the remote issue which is under sync.
Jira Incoming
if(replica.parentId){
def localParent = syncHelper.getLocalIssueFromRemoteUrn(replica.parentId)?.key
if(localParent){
issue."Epic Link" = localParent
} else {
throw new com.exalate.api.exception.IssueTrackerException("Issue not found" )
}
}
Comments
Exalate uses this method to synchronize issues that have some relation in-between. For example:
- Epic and stories synchronization
- Task and sub-tasks synchronization
- issue links synchronization