Confluence has been updated to ver 6.15.9. In case of any troubles, please contact infra team.

customer request type sync

 
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 (iDalko)

        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é

      CommentAdd your comment...