Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

STAGIL Advanced Links in Jira Cloud are often assigned custom field properties and functionality which are not exact. Thus, common Automation field-based triggers and actions are not applicable. However, storing data in issue properties enables Advanced Links to be used with a Jira Automation action Set Entity Property. By using smart values it enables us to add key/value to an issue or, in our case, add new links to our Advanced Link field.

  1. Go to Automation RulesCreate rule.

  2. Select and configure trigger requirements → Save.

  3. Select New componentNew action → Set entity property.

  4. Select “Issue” in the Entity type field.

  5. Enter Advanced Link description according to the example:
    assetlink_inward_4942, where:
    assetlink_ is a fixed value
    inward_ is the direction of the Advanced Link field to which it is required to link new relations
    4942 is the Advanced Link field’s ID number. To see the ID number go to Manage AppsAdvanced 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

  6. Enter Property value.

    1. To add more Advanced Links to the existing use:

      {
      "add": ["EIP-3", "EIP-4"]
      }

    2. To set new Advanced Links instead of existing use:

      {
      "set": ["EIP-3", "EIP-4"]
      }

    3. To link issues that are mentioned in the comment by issue key use

      {
      "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.

  • No labels