Using Automation REST API with OAuth token

I already have a 3LO app allowing users to create new issues. I would like to add the ability for users to manually run an automation rule. I have found the Automation REST API (https://developer.atlassian.com/cloud/automation/rest), but it does not support authentication with OAuth token. I also do not see a way to create API Tokens via the Jira REST API. I cannot require users to sign into their account and create an API token to use this feature.

Hello @RyanHolstad

There is no way to use Jira’s REST API to create Basic tokens or browser session cookies, so if you cannot get the user to provide your app with their API token, then your app will not be use the Automation API.

Are you able to speak to why the Automation API doesn’t support OAuth or whether it may in the future? Or is there any other API which supports OAuth for manually triggering an automation rule?

My guess is that because OAuth opens the path for triggering actions that don’t originate from a user account or can be done without their individual consent, and since the manual triggering of an automation rule must be done exclusively by a user, which directly infers their consent, Atlassian probably just don’t want that basic logic rule to be broken.

Secondly, Atlassian probably also don’t want people building apps that could mass trigger automations manually, thereby replicating the existing automation scheduling system, thereby creating large loads on their systems. They probably want to keep the manually triggering of automation as a ‘special case’ that only individual users can do, or their individual API tokens can do, and thereby be constrained by the GUI or existing personal API access limits.