You cannot. As the title of the documentation indicates, the Atlassian OAuth 2 implementation only implements “3LO”, formally known as the client authorization flow, which requires human intervention.
OAuth 2 specifies the client credentials flow for this scenario, but Atlassian hasn’t implemented it. Please watch, vote, and comment on: