Hello Community,
I am currently working on a formular for Jira Automation which is supposed to create a work item with a table in the description.
The content of the description comes from {{webhookData}}, so I am using a Webhook.
My formular currently looks like this:
||Business Name|{{ltWebhookData.businessName}}|
||Score|{{ltWebhookData.payload.Score}}|
||Workbench Id|{{ltWebhookData.payload.Workbench Id}}|
||Model|{{ltWebhookData.payload.Model}}|
||Model Severity|{{ltWebhookData.payload.Model severity}}|
||Impact scope details|h3. Desktops
{{#ltWebhookData.payload.Impact scope details.Endpoint - Desktops}}
* Hostname: {{Hostname}}
* IPs: {{Ips}}
* Guid: {{Guid}}{{^last}}\\{{/}}
{{/}}|
|| |h3. Servers
{{#ltWebhookData.payload.Impact scope details.Endpoint - Servers}}
- Hostname: {{Hostname}}
- IPs: {{Ips}}
- Guid: {{Guid}}{{^last}}\\{{/}}
{{/}}|
|| |h3. Accounts
{{#ltWebhookData.payload.Impact scope details.Accounts}}
- {{.}}{{^last}}\\{{/}}
{{/}}|
||Link|{{ltWebhookData.payload.Link}}|
The problem I am facing is a broken table layout when "Endpoint - Desktops" or "Endpoint - Servers" is empty.
Is there a way to check that with an "{{if}}" in my formular? I tried that but only received errors.
Thank you for your help 