- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2017 11:19 AM
I need to place a time constraint on a catalog item. For example, the item is available upon approved request, but only for a 10 day period...what's the best way to apply this constraint?
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2017 10:26 AM
You do not need a script include to make sure that the end date is not before the start date, only the lines I added - checked and verified in my instance.
If you have all the script I provided, you should be covered.
Please make sure you added the lines to the correct script.
Also, reload the catalog item page after adding and the lines and saving the script.
If it still does not work, please share your script with the lines included.
harel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2017 01:43 AM
you've been a huge help Harel, thanks a ton!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2017 03:41 AM
I suggest that if the end_date and start_date in the separate ritm do the same as the variable sets, you drop them and use the variable sets.
As for checking the group of ritms: is there a way that you group them, such as under the same category or something? We need a way to set them a part from other ritms the user opens, and that are not related to this bunch of items.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2017 08:59 AM
I've gone and removed the matching end_date and start_date individual variables on that one catalog item, so now every item in this group, which does have its own exclusive category, are running the same variable set controlling all the end date and start date parameters we've set up. However it is still allowing a user to place multiple requests for different items from this exclusive group of catalog items with overlapping end and start dates. It is preventing the user from placing multiple requests for a single item from this group with overlapping dates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2017 09:43 AM
Yes - please see my last comment:
As for checking the group of ritms: is there a way that you group them, such as under the same category or something? We need a way to set them a part from other ritms the user opens, and that are not related to this bunch of items.
A user may open an unrelated RITM, right? And you don't want to include them in the overlap check. So we need a way to know which ritm belongs to the group that you want to check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2017 08:29 AM
Hello Harel,
wondering if you could help with a new problem. I need a field on a form for a catalog item in the service catalog to auto-populate with information pull from another record. Here are the details. Computers in the cmdb_ci_computer table have an "assigned to" field which is entered from the sys_user table. On the catalog item form the user will enter their name, which then needs to pull the computer which ties to them from the cmdb record. Does this make sense and can you help? thanks