Learn how to integrate Yandex Tracker with Cloud Functions to copy time spent entries from sub-issues to their parent issue.
When the trigger fires, the function adds the latest time spent entry from the sub-issue to its parent issue.
Example limitations
The function does not recalculate the total time spent across all sub-issues. Updates and deletions of existing entries are not synchronized. Invoking the function again for the same entry may add a duplicate to the parent issue.
This scenario is intended for the external Yandex Tracker service with a Yandex 360 for Business organization. For Yandex Cloud organizations and the internal Tracker service, you will need to adapt the function code.
To run the scenario, you will need:
A Yandex Cloud account with a billing account and a role of at least organization-manager.admin.
A Yandex Tracker account with a Yandex 360 for Business organization.
Sign up for Yandex Cloud and create a billing account:
Go to the management console and log in to Yandex Cloud or create an account if you do not have one yet.
On the Billing page, make sure you have a billing account activated and its status is ACTIVE or TRIAL_ACTIVE. If you do not have a billing account, create one.
If you have an active billing account, you can create or select a folder on the cloud page to host your infrastructure.
The infrastructure maintenance fee covers the cost of using this function (see Cloud Functions pricing).
If you no longer need the resources you created, delete them.
Register an OAuth application and get an access token
Register an OAuth application and get a token by following the Tracker API access instructions. Save the token. You will need it to create the function.