Hi all,
At my client we like to achieve the following with an automation rule:
We would like to trigger an automation rule based on a self-transition in the workflow. In this case we would like to create a story from a bug, using a self-transition.
For example:

- Status: To Do
- Self-transition: 'Create a Story'
- Status: Intake
- Self-transition: 'Create a Story'
This created a workflow button on the top of a bug.
When clicking the 'Create a Story' transition button we would like to trigger an automation rule that will create a new story and link it to the bug.

The automation rule is configured as follows:

This causes the following behaviour:
When the bug in status 'To Do' and you click the 'To Do' workflow status again. It creates a story and links it. We only want to create a story when the 'Create a Story' transition is being used.
Do you guys have any clue on how to configure this?
Thanks in advance!