- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 08:00 AM
Hi,
I am working on SN-JIRA integration and facing issue while I am sending the date/time field value.
for example , I am sending planned start date and planned end date field value of a Change record which has time component also (field type - date/time)
in JIRA its only picking up Date part , time part is getting skipped
what I am sending via variable is following
var start=new GlideDate();
start.setValue(fd_data.trigger.current.start_date)
//start.getByFormat("MM-dd-yyyy HH:mm");
start.getByFormat("MM-dd-yyyy HH:mm.SSSZ");
return start.getValue();
kindly help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 06:51 AM - edited 08-23-2024 06:58 AM
Hi All,
I was able to resolve it using following code
var start= new GlideDate();
start.setValue(fd_data.trigger.current.start_date);
return start.getByFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
I took help from below links
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1207255
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 08:31 AM
You're probably not sending the format over correctly, try looking here.
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 06:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 06:51 AM - edited 08-23-2024 06:58 AM
Hi All,
I was able to resolve it using following code
var start= new GlideDate();
start.setValue(fd_data.trigger.current.start_date);
return start.getByFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
I took help from below links
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1207255