...
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Advanced Links in Jira Cloud are often assigned custom field properties and functionality which are not exact. Thus, common distinct from Advanced Links in the app’s Data Center version, where they are built as Jira's standard custom fields. As a result, some of the typical automation field-based triggers and actions are not as accessible in Cloud as they are in DC. However, there are a few ways of using Jira automation rules:
using a webhook URL to trigger the automation
manage links by setting entity property
Trigger automation rule with link update (via webhook URL)
Triggering automation through Advanced Links is possible through any of these events:
the issue is linked via an Advanced Link Panel
the issue is removed from the Advanced Link panel
To begin, you need to obtain the webhook URL that will be used to trigger Jira automation:
Navigate to the automation configuration page (global or project-level)
Create a new rule: click on the "Create rule" button to start creating a new automation rule.
Select the trigger: under ‘Integrations’ see and select the ‘Incoming webhook’ trigger.
Copy the webhook URL.
Then, keep the automation tab open, open a new one and navigate to an Advanced Link configuration page. Open the link ‘Actions’ menu and select ‘Manage automation’:
...
Click the ‘Select Rule’ button. Give the automation a name and select the trigger. There are two options to select from:
Issue linked: the rule is triggered when the issue is linked via this Advanced Link.
Issue linked deleted: the rule is triggered when the an issue linked via this Advanced Link.
Then, insert the webhook copied from the automation configuration page and click ‘Create’. Then close the automation dialogue.
...
Go back to the previous page with the automation rule. Continue editing the rule by adding a new action, or condition or creating a branch. After configuring the rule, be sure to save and activate it.
That's it! You have now configured the automation feature to trigger Jira automation using a webhook URL 👏
Set Entity Property
Advanced Links in Jira Cloud are distinct from Advanced Links in the app’s Data Center version, where they are built as Jira's standard custom fields. As a result, some of the typical Automation field-based triggers and actions are not applicablecompatible with them. However, storing data in issue properties enables Advanced Links to be used we can utilize issue properties to store data, allowing us to use Advanced Links with a Jira Automation action called Set Entity Property. By using incorporating smart values it enables us to add , we can append key/value pairs to an issue or , in our case, add new links to our Advanced Link field.
Add new Advanced Link
Go to Automation Rules → Create rule.
Select and configure trigger requirements → Save.
Select New component → New action → Set entity property.
Select “Issue” in the Entity type field.
Enter Advanced Link description according to the example:
assetlink_inward_4942
, where:assetlink_
is a fixed valueinward_
is the direction of the Advanced Link field to which it is required to link new relations4942
is the Advanced Link field’s ID number. To see the ID number go to Manage Apps → Advanced Links. Hover over the Advanced Link → find a URL in the lower left corner of the page with an ID number e.g.https://apps.stagil.com/sajc/relation/4942/outward
Enter Property value.
To add more Advanced Links to the existing use:
Code Block { "add": ["EIP-3", "EIP-4"] }
To set new Advanced Links instead of existing use:
Code Block { "set": ["EIP-3", "EIP-4"] }
To link issues that are mentioned in the comment by issue key use
Code Block { "add": ["{{comment.body}}"] }
It is important to make sure that the issue key remains in the text format. If the issue key is saved as an issue link, the automation rule will not be triggered.
...