Skip to content

Create time entries manually #172

@enriquezrene

Description

@enriquezrene

As a user, I want to be able to create entries manually for records in the past in order to have a track of all the work I have done.

The page available in the URL https://time-tracker-ui.azurewebsites.net/time-entries needs to have a button Add time entry. When a user clicks on it, the screen will display a form similar to the modal that appears when a user clicks on edit a time entry as follows (from the page, click on the pencil in the existing row).

Screen Shot 2020-04-24 at 08 31 57

The above-mentioned screen needs to include a couple of fields to indicate the start and end date-time for the time-entry that is going to be saved.

Required fields to be entered are:

  • Project
  • Activity
  • Technology
  • Start date/time
  • End date/time

A request to save a time-entry is shown below:

curl -X POST "https://timetracker-api.azurewebsites.net/time-entries" -H "accept: application/json" -H "Authorization: Bearer {JWT}" -H "Content-Type: application/json" -d "{ \"project_id\": \"95d624b0-6762-44ab-ad27-686d555967cf\", \"start_date\": \"2020-04-22T21:44:59Z\", \"activity_id\": \"7a68b12f-2650-465a-b2e0-97811309a576\", \"description\": \"Law create if wall how number run.\", \"end_date\": \"2020-04-23T21:44:59Z\", \"uri\": \"#54\", \"technologies\": [ \"cosmos_db\", \"typescript\", \"javascript\" ]}"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions