1
0
-1
1 answer
- 10-1
To map components, this should work:
def componentMap = ["Backend": "API"] issue.components = replica.components .collect { remoteComponent -> def componentName = remoteComponent.name def localComponent = componentMap[componentName] ?: componentName nodeHelper.getComponent( localComponent, nodeHelper.getProject(issue.projectKey) ) }.findAll()
Add your comment...
In the external JIRA issue there is a component named “Backend”, in the internal Jira this component should be automatically changed to “API”, I tried to use the following
But it says I cannot call if in that context