Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Introduction

Creating new notification or certificate templates has its challenges since rendering (code execution) is happening in a black box where debugging is difficult and no breakpoints possible.

...

Throwing explicit exceptions and checking variables whether an object lookup was successful would help with debugging and on live systems to look into issues.

Template for the certificate template:

Jira Legacy
serverSystem JIRA
serverId23f523ea-1678-3ca2-a1e8-2de53fd3b74a
keySUCO-677

Other (real world) examples can be found in Git Core repository in

  • CustomerAssets\certificateTemplates

  • CustomerAssets\notificationTemplates

Example of a ‘Bad’ Template

...

Always check if the requested object does exist - check for null. If an object was expected and is required for rendering throw an explicit error with as much detail as possible so debugging and live-site-investigations is easier.

Develop Print Layout

Chrome has the ability to render a print version of a page instead of needing to open the print menu to see the print layout. This could reduce dev time for the print version.

Open Chrome > Dev Tools (F11)-> three dots -> More tools -> Rendering -> emulate CSS media type

...