Via REST API, obtain "Next scheduled time" from REST API as it shows on "Build Settings - Triggers"
Hi.
My client site is using TeamCity and make use of Scheduled Triggers for their routine database refreshes.
Each week, my client manually puts together a list of upcoming scheduled builds for the week.
I would like to use TeamCity's REST API to put the list together.
So far, I am able to use the REST API to get all the builds and extract their scheduled triggers; however, I would prefer NOT to write code that interprets the scheduled trigger's parameters, if there is a way to use TeamCity's method of interpreting the scheduled trigger's parameters to come up with the "Next scheduled time" from REST API as it shows on "Build Settings - Triggers".
Is it possible to extract this "Next Scheduled Time" date and time and timezone using the REST API?
Kind Regards,
Jason
Please sign in to leave a comment.
It's absolutely baffling that after so many years, TeamCity still lacks proper support for scheduling triggers via the REST API. Scheduled triggers are a fundamental feature for many CI/CD pipelines, and having no native way to programmatically set or manage them feels like an oversight, especially given the maturity of the platform.
Manually setting up schedules or relying on workarounds is time-consuming and error-prone. Modern development teams expect flexibility and automation, and not having this feature in 2024 is disappointing.
JetBrains, it's time to prioritize this! We need a reliable way to fully manage Scheduled Triggers through the REST API. Please listen to your community and make this a priority.
Hi,
Thank you for bringing this issue to our attention.
We completely understand your frustration. This issue is already tracked in our bug tracker: TW-86800
You’re welcome to vote for the issue and follow its progress via the provided link
Best Regards,
Tom
Tom Sun I am very grateful for the quick response on this issue! We will be waiting, thanks :)