Summary
Aliases are versatile mechanisms for providing short cuts to common directives, e.g. an Alias bug with value issueType=bug allows a Directive of @bug to be used. Additionally, Aliases can be used to provide a mapping from some other source that happens to match a supported JEMH Field Processor format, for example, if a remote system created a value:
Related Systems: this,that,the other
This value could be mapped to components by setting up an Alias components with a value of Related Systems.
Creating an Alias
Enter the Alias name that you would like and then enter the value you would it to be linked to. In this example the Alias is “bug” and the value is “issueType=bug”
Press Submit to save the Alias. Once saved it will appear in the list at the bottom. Here you are able to edit or delete the Alias.
Testing Alias
Create a Test Case that uses this Alias within a Directive. In this example we are using the At (@) Prefix Field Processor. (For info about Field Processors see: Field Processors) The email looks like the following:
MIME-Version: 1.0 Received: by 10.223.112.12 with HTTP; Sat, 18 Jun 2011 22:42:26 -0700 (PDT) Date: Tue, 18 April 2023 15:42:26 +1200 Message-ID: <BANLkTinB1mfSh+GwOXGNWoL4SyDvOpdBoQ@mail.gmail.com> Subject: This is a starting email template, update as required From: admin@localhost To: mailbox@localhost Content-Type: text/plain; charset=UTF-8 @bug some text
Now when we run this example we will see that a Directive was found and that JEMH will set the Issue Type to Bug:
Issue view:
Alias options
Edit
This will add the existing values for this Alias into the Alias and Value textboxes, allowing you to modify the Alias. Pressing Submit after altering will save the modified version of the Alias.
Delete
This will delete the Alias, meaning that it can no longer be used.