- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 09:19 AM
I'm Implementing a change registration endpoint so that changes can be created via an API. So Im Building out a Scripted REST API here and a little stuck. Im scripting to populate these fields (Service, Assignment group, description, short description, planned start date , planned end date).
Am I off to the right start? How do I scripted for planned start date/ planned end date for the format to be like (2022-07-26T16:07:05Z-3:00)
Heres what I have so far:
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 09:32 AM
Hi Ashle,
for planned start date, can you try like this.
var startDate=parsedData.start_date;
var plannedStartDate=startDate.split('T')[0];
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 09:32 AM
Hi Ashle,
for planned start date, can you try like this.
var startDate=parsedData.start_date;
var plannedStartDate=startDate.split('T')[0];
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 09:37 AM
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 09:40 AM
Hi Sathish,
Should I have both queries in the script you suggested ? Or just
var plannedStartDate=startDate.split('T')[0];
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 09:43 AM
As suggested ?