Questions for Confluence license has expired.

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

How to sync Catalog Task Variables in ServiceNow

 
2
1
0

Hi


We are looking into syncing a catalog task from ServiceNow to Jira.

However, the catalog task has a section "variables" where more fields are stored with data. Unlike the normal fields on the catalog task, I'm unable to directly get their value by their system name.


Is there a way to get the values for the variables?



Thanks in advance

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      How to get the reference field value instead of sys id from the catalog task variables? e.g. in the requested by variable, I am getting sys id instead of user's name. Code I am using is  

      catalogTask.request_item = nodeHelper.getReference("sys_user", "sys_id", ${sys_id})?.sys_id

      replica.variables      = buildVariablesMap(catalogTask.request_item.display_value)

      CommentAdd your comment...