clockify-cli task add

clockify-cli task add

Adds a new task to a project on Clockify

Synopsis

Adds a new active task to a project on Clockify, also allows to assign users to it at the same time

Tasks will be created as billable or not depending on the project settings. If you set a estimate for the task, but the project is set as manual estimation, then it will have no effect on Clockify.

clockify-cli task add [flags]

Examples

$ clockify-cli task add -p special --name="Very Important"
+--------------------------+----------------+--------+
|            ID            |      NAME      | STATUS |
+--------------------------+----------------+--------+
| 62aa5d7049445270d7b979d6 | Very Important | ACTIVE |
+--------------------------+----------------+--------+

$ clockify-cli task add -p special --name="Very Cool" --assign john@example.com | \
  jq '.[] |.assigneeIds' --compact-output
["dddddddddddddddddddddddd"]

$ clockify-cli task add -p special --name Billable --billable --quiet
62ab129e4ebb4f143c8e8622

$ clockify-cli task add -p special --name "Not Billable" --not-billable --csv
id,name,status
62ab145ec22de9759e6f6e36,Not Billable,ACTIVE

$ clockify-cli task add -p special --name 'With 1H to Make' --estimate 1
+--------------------------+-----------------+--------+
|            ID            |       NAME      | STATUS |
+--------------------------+-----------------+--------+
| 62aa5d7049445270d7b979d6 | With 1H to Make | ACTIVE |
+--------------------------+-----------------+--------+

Options

  -A, --assignee strings   list of users that are assigned to this task
      --billable           sets the task as billable
  -v, --csv                print as CSV
  -E, --estimate int32     estimation on hours
  -f, --format string      golang text/template format to be applied on each Client
  -h, --help               help for add
  -j, --json               print as JSON
  -n, --name string        new name of the task
      --no-assignee        cleans the assignee list
      --not-billable       sets the task as not billable
  -p, --project string     the name/id of the project to work on
  -q, --quiet              only display ids

Options inherited from parent commands

      --allow-name-for-id           allow use of project/client/tag's name when id is asked
  -i, --interactive                 will prompt you to confirm/complement commands input before executing the action 
  -L, --interactive-page-size int   will set how many items will be shown on interactive mode (default 7)
      --log-level string            { none | debug | info } set log level (default "none")
  -t, --token string                clockify's token
                                    Can be generated here: https://clockify.me/user/settings#generateApiKeyBtn
  -u, --user-id string              user id from the token
  -w, --workspace string            workspace to be used

SEE ALSO

Auto generated by spf13/cobra on 15-Jun-2024