Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

Mapping multiple flows

 
1
0
-1

Hi Team,


Hi Andres,

We have synchronized one project using script mode from source to target Instance and got synced. We are facing below issue
1) we have 7 workflows belongs to different issue types and also trying to mapping this workflows from "source to Target", "Target to source" using script mode.
2) We are looking to map some custom fields from "source to Target", "Target to source" using script mode.


Could you please help on this?

BR,
Sattar

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Sattar Baig 


      You can write some if-else statements to differentiate between the issue types and map the statuses that way.

      For example:

      if(issue.type?.name == "Incident"){
      	//Map statuses & fields for incident
      }
      else if(issue.type?.name == "Story"){
      	//Map statuses & fields for story
      }


      You can also use a switch instead of if-else. It helps to think out ahead on paper what the mapping from side A to B and vice versa will be, to get the correct bits of code in the processors.


      In case you feel uncomfortable in coding, please note there are Exalate partners that can help you with your setup. https://exalate.com/partners/


      Kind regards
      Jorden


        CommentAdd your comment...