The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe

Questions

 
2
1
0

Hello, I have one custom ServiceNow field, that contains some choices and a Jira Custom Field of type String.

How can I set up my incoming and outgoing? I've programmed everything on outgoing side.


ServiceNow Outgoing


replica.customFields."Activo del Equipo" = entity.customFields."Prioridad Jira"


Jira Incoming


issue.customFields."Activo del Equipo".value = replica.customFields."Prioridad Jira"?.value


Is this ok? Does anyone know the correct sintax? Nothing seems to happen, nor even an error.





  1. Ariel Aguilar

    Hi Jorge,

    You should try:

    ServiceNow Outgoing:

    replica.customFields."Prioridad Jira" = entity.customFields."Prioridad Jira"

    Jira Incoming:

    issue.customFields."Activo del Equipo".value = replica.customFields."Prioridad Jira"?.value

    Let me know if this works for you now.

    Kind regards,

    Ariel

  2. Jorge Guadarrama

    Hi Ariel,


    Thank you for responding. It didn't work.

    What is the difference between using 


    replica.customFields."Prioridad Jira" = entity.customFields."Prioridad Jira"


    and replica.customFields."Prioridad Jira" = entity.u_prioridad_jira ?


    Can I use the column name for my custom ServiceNow field?

    Is there a way to log anything?

    How can I verify if my custom field is being received by Jira?


    I'm asking all this questions because the documentations is a bit incomplete.



    Thanks


  3. Jorge Guadarrama

    This is my outgoing:


    if (entity.tableName == "incident" && entity.assignment_group.display_value == 'Grupo 1') {
    
      replica.key = entity.key
      replica.summary = entity.short_description
      replica.description = entity.description
      replica.attachments = entity.attachments
      replica.comments = entity.comments
      replica.issuetype = 'Incident'
      replica.customFields."Prioridad Jira" = entity.customFields."Prioridad Jira"
    
    }
CommentAdd your comment...

1 answer

  1.  
    2
    1
    0

    This is for anyone that has the same problem:


    I solved it using the following:


    Outgoing

    replica.u_prioridad_jira = entity.u_prioridad_jira


    Incoming

    entity.u_prioridad_jira = replica.u_prioridad_jira.value
      CommentAdd your comment...