When I've got an automation rule triggered by "Issue linked", I can use the common Smart variables for issues with "{{issue}}" (e.g. "{{issue.key}}") and "{{destinationIssue}}" (e.g. "{{destinationIssue.key}}"). And I can use "{{linkType}}".
Is there any way to get the direction of the created link (e.g. "blocks" or "is blocked by")?
Supplement:
My task is to allow a special type of link only for links between issues of two certain projects and in one direction.
The link type is “Epic synchronization”, the “Outward Description” is “Epic synchronizes Epic” and the “Inward Description” is “Epic is synchronized by Epic”.
In project X there are some Epics which must be synchronized with certain Epics from project Y (regarding the issue status).
The other “direction” and the use of the link type for other projects are not allowed.
Since I can’t limit the usage of the link type by defining a context, I want to check it whenever an issue link is created or alternatively in a scheduled automation rule which sends a mail whenever the link type is used incorrectly.
I’ve already managed to create an automation rule for the Epic synchronization itself, but that one assumes that there are only correct links.
Does anybody have any idea how to do the check?