As a user, I want to clock in by typing /clock in when I'm starting to work, so I can begin tracking time on any given day.
Solution design
A TimeEntry__c object will be created to store time entries. Each time entry will have at minimum four fields.
Start Time
End Time
Slack User ID
Slack Team ID
It's important to note that trying to clock in twice without clocking out should cause an error to be generated along the lines of "Hey, you've already clocked in!"
Conditions of satisfaction
Not clocked in scenario...
Given a Slack user who is not clocked in;
When the Slack user types /clock in;
Then a new Time Entry record should be created for the user, and a confirmation message sent to user saying, "You're clocked in."
Clocked in scenario...
Given a Slack user who has already clocked in;
When the Slack user types /clock in;
Then the user should get an error message saying, "Uh, you already clocked in earlier."
As a user, I want to clock in by typing
/clock in
when I'm starting to work, so I can begin tracking time on any given day.Solution design
A
TimeEntry__c
object will be created to store time entries. Each time entry will have at minimum four fields.It's important to note that trying to clock in twice without clocking out should cause an error to be generated along the lines of "Hey, you've already clocked in!"
Conditions of satisfaction
Not clocked in scenario...
/clock in
;Clocked in scenario...
/clock in
;