Using Time Slots in SharePoint 2007 calendar - sharepoint-2007

Is there a way to create a SharePoint 2007 calendar that only allows users to input appointments in certain time slots? I would like the time slots to run Monday thru Friday from 8am - 10am, 10am - 12pm, 1pm - 3pm, 3pm - 5pm, and 5pm - 7pm. Only one person can sign up in a time slot at a time.
I do not want to have to enter every date from now till the end of time, which is the how this solution works: http://sharepointsolutions.blogspot.com/2009/02/give-blood-to-your-workflow.html
That is a great solution for the one-time Blood Drive type of time slotting but not exactly what I need.

I would either :
adapt the new form or create a custom one that will prevent people from adding a new event outside of your specified time slots and ensure that a specific time slot is not registered by someone else prior to save it. That will allow you to create a dedicated UI with relevant controls (eg : dropdown lists that have only the hours that you specified)
add an event handler on ItemUpdating that will ensure that there is no collision with another event and validate your business requirement regarding time slot. You can then transfer to an error page with a proper explanation message
Both solutions require custom development. I would be glad to hear if there is something out of the box that would fulfill this need.

Related

Twilio Autopilot change previously collected fields

I am trying to set up a time and date to schedule an appointment, so I collect the date first and verify that times are available on that date. Then I try to collect a time for that date, if that time does not exist I want the customer to be able to ask something like, "How about Friday at 6pm." and it will change the date. Is there an easy way or workaround to get this functionality?

handing daily tasks in rails with timezones and DST

In my app, users can select a time that they want to receive a daily email. I then regularly run a script to find users who have an upcoming email to send and send it. So, if users elect to have an email that goes out at 7AM, I look for users with that selected as their time and send it.
The problem is of course timezones. I'm going to have users in different timezones and need 7AM to always be 7AM, regardless of timezones or daylight savings.
I can understand how to do it for display purposes, but I can't find much info on executing queries that have to factor in the timezone and DST for a collection of users with varying times and timezones.
This can probably be most easily accomplished by simply saving everything in the database as UTC. You can adjust the times for display and incoming form data by using the users' specified time zone.

Get JIRA issue status time

There is a status in my JIRA instance called "Ready For Test" at which the tester would validate and close the jira. I need to know the amount of time the JIRA is in that particular status since it was moved from "In Progress" to "Ready to Test".
Is there a JQL query that can do it? I need this time field to be exported to Excel as well so that I can name and shame people and ask them to close the JIRAs as soon as they can.
I don't think it is possible on clean Jira installation. There are two plugins I know providing this kind of functionality:
Time in Status - self-explanatory
Enhancer Plugin (sorry, can't post more than two links) - adds a configurable time in status custom field, bt if I remember it correctly, it can display value only after you leave the status.
These are both paid, so that can be an issue.
Another option (if you're not using OnDemand) is the Script Runner Plugin. This plugin will allow you to create your own workflow postfunctions so you can store the "Ready to Test" transition date to one custom field and either calculate time and write it to another custom field when leaving that status or write a scripted field that will calculate and display current time since entering status. This solution is free (not counting your time to implement the functions).
Thanks #SilenyHobit for the idea. Here is what I've done:
First installed JIRA Suite Utilities plugin (its FREE)
Added a custom field called RFTDate (date type control)
Added a post function in RFT transition to update RFTDate with current datetime
Voila!!!
As an alternative, you can use Status Time Jira app. It provides reports on how much time passed in each status.
Once you enter your working calendar into the app, it takes your working schedule into account too. That is, "In Progress" time of an issue opened on Friday at 5 PM and closed on Monday at 9 AM, will be a few hours rather than 3 days. It has various other reports like assignee time, status entry dates, average/sum reports by any field(eg. average in progress time by project, average cycle time by issue creation month). And all these are available as gadgets on the dashboard too.
Here is the online demo link, you can see it in action and try.
As a free solution, you can try the limited version Status Time Free.

Have any one use this rails event_calender plug in to show events with the holidays?

How can I put event with regarding holidays. Do any one have experience with this??
I need to create event which may have holiday at the middle of that and event should not be visible in that holiday period.
Can any one know how to do this ??
event_calendar plug in link at git hub
I think you need to add holidays in to calendar. There is way to add holidays in to rails event calendar plug in as new event but there is problem arise when holidays comes to middle of the particular event.

How can I display the correct created and modified times in my webapp?

I'm working on a Rails application that's kind of like a blog. Users create Entries. I'm trying to work out how to handle time storage and display. I've read this writeup about Rails timezone support.
It's great but it doesn't cover what my app needs to do. It only looks at cases where you want to convert stored time to the current logged in user's time zone. In contrast, the effect I want is...
A user creates an entry in California at 10:00 a.m.
A couple years later he moves to New York and then at some point looks at his old entry. The "created" date should say "10:00 a.m." He doesn't care about time zones. He just wants to know what time of day he felt like it was when he wrote the entry.
If he then edits the Entry in New York the displayed "modified" date is, again, his subjective time of day when he made the edit. (Let's assume he went to "preferences" and changed his time zone setting when he moved.)
Also, for the sake of thoroughness, the app should be able to report the "real" absolute time when an Entry was created or updated.
(Note -- my imaginary user is a guy, but for women it should work roughly the same way.)
The way I'm thinking of implementing it is...
Have the attributes User#time_zone, Entry#created_at_utc, and Entry#updated_at_utc in addition to the standard created_at and updated_at.
The user selects their time zone from a menu when they sign up. (They can change it later if they want.)
The app uses User#time_zone to store created_at and updated_at in the user's subjective local time. If it's 10:00 a.m. for them, the app writes "10:00 a.m." to the DB.
The app also saves the current UTC time in the aforementioned _utc fields to deal with the last requirement above.
Is that a good way to do it? Is there a better way?
The two roads you can take are:
Store a timezone (UTC) in the user account as well as in every post - update the post's timezone along with the updated_at field whenever the user changes the post (if he or she has changed timezones).
Store the timezone only in the user account. When the user changes timezones, update every post that belongs to the user and add/subtract to the created_at/updated_at dates.
The first option seems like the cleanest option to take. For this you would only have to create a new method in your post record:
def locational_updated_at
updated_at + timezone.seconds
end
Where timezone is an integer containing the seconds since UTC.
If you can, you should avoid storing two different sets of timestamps, and you should avoid storing any non-UTC dates. Both of these things will lead to confusion. I'm not completely sure I understand what you're doing (though I like your idea of subjective time), but wouldn't it be enough to just attach a time zone to every post, and always use that zone to display the times? It would default to the time zone set in the author's account, so he could change it when he moved cross-country without affecting previous posts.
I think that's all you need--to attach a time zone to every post. Is that sufficient? Or am I missing some part of this?

Resources