1
0
-1

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

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      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.


        CommentAdd your comment...