Introduction

User macros enable you to create a custom macro tag such as {viewTicket} which transforms data provided between the tags based on the user macro code. In this example, the macro transforms a provided ExtraView ticket id into an HTML link that opens a new tab or window in the browser and shows the detail view for the Extraview ticket.

Using a custom macro

This code...

{viewTicket}45701{viewTicket}

...produces this result...

Ticket 45701

Macro code

The code for this user macro is shown below and must be set up by WEG staff since it requires admin permissions to Confluence. The $body variable references the data provided between the macro tags. Macros can output HTML or wiki markup.

<a target="_blank"
href="https://cislcustomersupport.ucar.edu/evj/ExtraView/evSignon?
p_option=search.SearchReportDetailDisplay&p_action=doRunDetailed&p_id=$body">$body</a>

More documentation

See the Hello World User Macro documentation for more details.

Requesting a user macro

If you would like to create a macro of your own, please submit a work request with the name of your macro and it's template body code (in either HTML or wiki markup) to CISL Customer Support.