Best answer

Github Clockify Integration Help

  • 4 April 2020
  • 2 replies

Hi all,

I’m trying to set up a zap between my github and clockify and would appreciate some help.

Here’s what I want:

  1. I create a repo on github => a new project is created in my clockify with that repo name
  2. I create a new issue on a repo in github => a new task is created in my clockify in the project of the same name of the repo the issue was created in.

1 is no trouble. But 2 is throwing a 404 error. The problem seems to be that whilst you can select a particular clockify project by name on zapier, it acts so as to select the ID of that project, which serves as its identifier in the URL. So if I select the repository name coming from Github it throws the 404 since it enters the project name, and not the project’s id into the URL.

Here’s an example:

  1. I create a repo called ‘test-repo’ on github.
  2. A project is created on my clockify called ‘test-repo’, but is assigned the id 1234567 in clockify which serves as its URL identifier.
  3. I create an issue called ‘test issue’ on test-repo on github.
  4. zapier sends a request to add a task to the project named ‘test-repo’, but throws an error since it needs to direct the request to 1234567.

My natural thought was to use the formatter to somehow get the project name from github,and replace the name with the relevant project’s ID. But I’ve not been able to do this. Any help would be very much appreciated. 


Thanks in advance :)





Best answer by steph.n 15 May 2020, 03:20

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +8

Hi there @nialljpaterson - Thanks for your question. Love the details! Please allow me a bit to get some advice on this to assist you further. Thank you for your patience!

Userlevel 7
Badge +8

Hi @nialljpaterson - It’s been a while since we heard back about this issue, but I see that you received your answer from Zapier Support and you got your Zap to work as expected. Yay! So that others may find the solution, I have shared it here:

So we want to add 2 more steps to one of your Create Task Zaps.
First - at Step 2 we need a formatter Split Text action (because Github isn't giving us the repo name).
So there we are going to split the Repository URL by "/" and keep the Last Segment.

The next step is to search Clockify to find the matching project. 
This will give us a Project ID for Clockify - which we can map in as a Custom Value for Project in Step 4.