xl8bot
1
Originally asked by Marianne Lee on 04 December 2020 (original question)
Hi,
Is there a way to map issue links in Jira Cloud for incoming sync, an equivalent of that for server?
IssueLinks.receive(
linkTypeMapping = [
// replace the mapping below acordindly "Remote side" : "Local side"
"Blocks"
:``"Relates"
]
)
I could only find these documents:
https://docs.idalko.com/exalate/display/ED/How+to+sync+issue+links+on+Jira+Cloud
https://docs.idalko.com/exalate/display/ED/IssueLinks.groovy
Thanks and regards,
Marianne
xl8bot
2
Answer by Mariia Horbatiuk on 04 February 2021
Hello Marianne,
Could you try this method:
def linkTypeMapping = [
// replace the mapping below accordingly "Remote side" : "Local side"
"Blocks" : "Relates"
]
issue.issueLinks = replica.issueLinks.collect { link -> link.linkTypeName = (linkTypeMapping[link.linkTypeName])? linkTypeMapping[link.linkTypeName] : link.linkTypeName }
I hope this worked on your side.
But I could look further if you could tell us more about the use-case.
xl8bot
Closed
3
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.