RTC Custom attribute With date and time
I want to achieve a custom attribute with both date and time, Is this possible?
Right now I see only date (calender) is available but not time (clock), can this be achieved. I have done it programatically to get both date and time on state change, But manually entering date and time in the same field i couldn't find it...
Regards,
-Kiran
2 answers
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript
I have however noticed that the timestamp presentation does not allow to see the time, you could use a calculated string from that. I Just did that yesterday. The issue would be to enter the script in the right format if you wanted to create a timestamp from it. You would probably also add a validator in this case. See the Process Enactment Workshop Lab 5 for more examples.
Comments
Hi Ralph,
Wouldn't this be a good feature to have in RTC... Do you know if there is an enhancement request WI...
I'm looking to create a custom field for an event which has already occurred and want to fill in both the event date and time when it occurred (the event is past event).
Regards,
-Kiran
Hi Kiran, I would agree it would be good to be able choose to enter a date with or without time and having a choice how to present it. One issue is that due dates are a date and then noon.
I just looked into the work items (you could do that too!) and others agree too. The work item is really pretty old and there is a newer RFE too. See https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=50718 and add your support.
Hi. What I found is in a custom date field, whatever date you select, RTC hard-codes the time as 12 noon. (Just as well it does not display the time). What we've done is have 2 fields for user to select time (hr and min). The selected date is then recalculated with the user selected time. I've added my name to the rfe.
regards
Sola
Comments
Pradeep Balachandran
JAZZ DEVELOPER Mar 14 '13, 2:50 p.m.Kiran,
Given that presentation doesn't yet allow a user to enter data and time manually, go ahead with your approach of a text string field. In your particular use-case you can seed this field with the a value for date & time (via a script) which should suffice in 50% (or more) of use-cases and for the rest, let the user modify it explicitly.
Thanks,
Pradeep