1
0
-1

We are trying to map servicenow RITM to Jira stories. We are done with all the fields but we are stuck with mapping reference field. We are stuck with mapping Servicenow assign to field with reporter on Jira and we are having issue in mapping fields having dates.


First thing is we need help or code snippet for mapping assigned to(reference variable) in servicenow to Jira. Code is as below:
def openedby= entity.opened_by.display_value
replica.reporter = openedby

Second thing is we are mapping due date in Jira to due date in servicenow. Script is as below, we are getting couldn't able to apply changes.
def pattern = "yyyy-MM-dd HH:mm:ss"
input = replica.due_date
debug.error("replica.due_date ${replica.due_date}")
entity.due_date = new SimpleDateFormat(pattern).parse(input)

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi there,

      We have seen a similar question answered here: Retrieve a list of variable for a RITM

      You might want to check it out and get back if more help is needed.

      Kind regards,

      Ariel

        CommentAdd your comment...