Add condition to transition programmatically

Hey community,
i am stuck in some strange situation, where I’m unable to find way to set workflow condition to some transitions programmatically from my addon in Jira Cloud.
Any ideas…
Regards