Dépannage

How to make a list of projects with assigned people via API?

1 min de lecture

If you want to create a list of projects with the people assigned to them, follow these steps:

  1. Tools:
    • You will need Postman (or another API tool) for making API calls
    • Convert JSON responses into CSV format for easier handling in Excel (e.g. use konklone, or some other conversion tool)
  2. API calls:
    • Use the following two endpoints:
      • GET /v1/users – To get user information
      • GET /v1/projects – To get project information
    • Be mindful of the page size et page number when fetching project data to ensure you retrieve all projects
  3. Convert data to CSV:
    • Dans Postman, export the responses to JSON
    • Utilisez le konklone.io to convert each JSON response to a CSV file
  4. Combine data in Excel:
    • Open the two CSV files in Excel
    • Utilisez le Excel’s conditional formatting to match the user IDs in the project CSV with the corresponding user names (or emails) from the user CSV
    • You may need to adjust cell sizes to view all data or separate the user IDs into multiple cells

As a result, you’ll have a CSV file listing projets in one column and the assigned user names in another column.

Cet article vous a-t-il été utile ?

Thank you! If you’d like a member of our support team to respond to you, please drop us a note at support@clockify.me