Hide transition button

Hello there!

I’m stuck in a dilemma… From our workflow status In Progress to Done, I got two transitions:

  1. The first one is meant to be transitioned through the user by meeting the conditions / mandatory fields in the transition form and their button should be visible in the webinterface.
  2. The second transition is meant to be triggered only via the Git Integration for Jira plugin. The smart commit function triggers a workflow transition in the name of the user commiting code on Git.

Therefore it is not possible to hide the second transition button in the webinterface by adding user related conditions.
Also the “Hide transition from user”-condition cant be used, because smart commits are not treated as workflow functions, which can trigger transitions with that condition applied.

Has anyone had a similar problem or can provide any help with hiding a transition button in the webinterface without user related conditions?