Skip to content

Enable Time Tracking of JetBrains (PHPStorm, WebStorm and etc.) with ClickUp (using Gitlab endpoints)

Notifications You must be signed in to change notification settings

Bashev/jetbrains-clickup-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JetBrains Time Tracking for ClickUp (Server)

Enable Time Tracking of JetBrains (PHPStorm, WebStorm) with ClickUp (using Gitlab endpoints).

This is some kind of workaround with which you are able to track your development time directly from your IDE (PHPStorm) to ClickUp. Current setup is a server on which we capturing native JetBrains integration with Gitlab requests and serve ClickUp data (spaces and tasks) in Gitlab format. Tracking data is pushed to ClickUp with capturing data which is pushed to "fake" Gitlab server.

Requirements

  • PHP >= 7.4 (not tested with PHP8.x, but code is compatible)
  • Apache >= 2.4 (not tested with nginx)

Apache vhost configuration

Apache Directive AllowEncodedSlashes need to be enabled. Put this line AllowEncodedSlashes NoDecode somewhere between <VirualHost> and </VirtualHost>

Virtual Host example file:

<VirtualHost *:80>
    ServerName track.example.com
    DocumentRoot /var/www/vhosts/track
    ErrorLog /var/log/httpd/track.example.com-error_log
    CustomLog /var/log/httpd/track.example.com-access_log combined
    HostnameLookups Off
    UseCanonicalName On
    ServerSignature Off

    <FilesMatch \.php$>
        SetHandler "proxy:unix:/var/php-fpm/www.sock|fcgi://localhost:9000"
    </FilesMatch>

    AllowEncodedSlashes NoDecode
    
    <Directory "/var/www/vhosts/track">    
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

PHP Storm Configuration

Configure Tracking Server

  1. Go to File Settings (Ctrl + Alt + S) - Tasks - Servers.
  2. Click on + and choose Gitlab Server.

image

  1. Add server address configured above (http://track.example.com).
  2. Put ClickUp API Key (Menu - Integrations - Custom Apps). API Key starts with "pk_".
  3. Choose Project (ClickUp Space) from which will be fetched tasks.

image

Enable Time Tracking

  1. Go to File - Settings (Ctrl + Alt + S) - Tasks - Time Tracking.
  2. Check Enable Time Tracking.

image

Track Time

When Time Tracking feature is enabled you will see additional window form which you can get list of tasks.

Known issues

  • Comments from Tracking window are not added to ClickUp.

Have a nice Tracking :)

Disclaimer

This was created for internal purposes and probably will not cover all cases. Feel free to open issue or fork and modify the code for your own requirements.

About

Enable Time Tracking of JetBrains (PHPStorm, WebStorm and etc.) with ClickUp (using Gitlab endpoints)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages