1
0
-1
Good morning, I need to set the "customer request type" automatically depends from the outcoming sync. Example: outgoing sync: replica.customFields."Customer Request Type" = issue.customFields."Customer Request Type" incoming sync: issue.customFields."Customer Request Type".value = "IT Help" issue.customFields."Customer Request Type".value = "IT Help 2" issue.customFields."Customer Request Type".value = "IT Help 3" use case: when in project A issue is "Customer Request Type" = "IT Help" set in project B "Customer Request Type" = "IT Help" when in project A issue is "Customer Request Type" = "IT Help 2" set in project B "Customer Request Type" = "IT Help 2" when in project A issue is "Customer Request Type" = "IT Help 3" set in project B "Customer Request Type" = "IT Help 3" Best regards Mario
    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Mario Fanck


      Can you check if How to synchronize 'Customer request type' Service Desk field covers what you are looking for?

      1. Mario Fanck

        Hi Francis,

        sure but this works only manually. Details EASE-3750

        We need this automatically in the remote issue.

        for customer request types:

        local "help1" → remote "help1"

        local "help2" → remote "help2"

        local "help3" → remote "help3"

        local "help4" → remote "help4"

      2. Francis Martens (Exalate)

        What do you mean with 'manually'?

        I guess I'm missing the point.




      3. Mario Fanck

        Outgoing sync:

        replica.customFields."Customer Request Type" = issue.customFields."Customer Request Type"


        Incoming sync: 

        issue.customFields."Customer Request Type".value = "IT Help"


        IT Help is a string but i need this dynamically depending from the input project A.


        When i choose a customer request type "IT Help" in project A then sync customer request type "IT Help" to project B.

        When i choose a customer request type "IT Help 1" in project A then sync customer request type "IT Help 1" to project B.

        When i choose a customer request type "IT Help 2" in project A then sync customer request type "IT Help 2" to project B.

      4. André Leroy-Beaulieu Castro

        Incoming sync: 

        issue.customFields."Customer Request Type".value = "IT Help"


        Instead of setting a static string you want to grab the value from the replica's value so it should be:


        issue.customFields."Customer Request Type".value = replica.customFields."Customer Request Type"?.value


        Thanks,


        André

      5. Shiva

        Hi Mario Fanck ,


        Were you able to achieve this? I am having same issue. I can sync the static value but it is not grabbing the value from the original ticket.


        Andre - I have tried your suggestion but its not working. 


        Thanks,

        Shiva

      6. Francis Martens (Exalate)

        Shiva,


        Check the value that you are assigning (using debug.error or log.info)

        Make sure that what you assign can be set.
        If it doesn't work for a certain value - try it with a hard coded string.

      CommentAdd your comment...