Have anyone done this? I’m trying to Sync a jira filed that contains a duration like this: “1 Day 2 hours 30 minutes” to a ServiceNow field that when I look at the local replica it sends the values like this, not sure what I’m mising, I’ve tried to send the value, thevalue.toString() formated the string but nothing seems to be working
The formats on both sides are radically different indeed, so some manipulation would be required. If you check the remote replica from SNOW, and give us the exact thing being received for the field, it would help. It would also help to understand the exact type of field in SNOW where you are trying to write this.
Here is an example that works for me in my system:
Send due date from Jira:
replica.due = issue.due
Process it on SNOW Incoming to populate the work_start field:
Hi @Majid thanks for sharing that part of the code.
I’m trying to set the Duration and the field type on servicenow is glide_duration, and it looks like it sends an string to Exalate (see the first screenshot on the ticket), it sends somthing like: 1 Day 1 Hour 30 minutes, I’ve tried to send it like and string but nothing seems to be working
Thanks for the tip, but what library do I have to import for this to work, as it doesn’t alllow me to save the code and the error is the following:
Error: 'Script cannot be saved. Details: startup failed:
Script4.groovy: 659: unable to resolve class GlideDuration
@ line 659, column 49.
tity.u_duration_of_downtime = new GlideD
^