# Way to place new line space using Webhook request

**URL:** <https://discuss.elastic.co/t/way-to-place-new-line-space-using-webhook-request/272413>\
**Category:** SIEM\
**Created:** [May 7, 2021, 11:41am UTC](https://discuss.elastic.co/t/way-to-place-new-line-space-using-webhook-request/272413 "2021-05-07T11:41:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suro](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Suro](https://discuss.elastic.co/u/Suro)\
**Post date:** [May 7, 2021, 11:41am UTC](https://discuss.elastic.co/t/way-to-place-new-line-space-using-webhook-request/272413/1 "2021-05-07T11:41:02Z")

</div>

We are trying to call ServiceNow Webhook API calls via Elastic Security signal actions. For Eg, we are using the following body below -

```auto
{
    "short_description":"{{context.rule.name}}",
    "description":"""Rule Description: {{context.rule.description}} 
Number of Events: {{state.signals_count}} 
Results: {{{context.results_link}}}""",
    "contact_type":"abc",
    "caller_id":"Elastic",
    "assignment_group":"abc",
    "subcategory":"Incident",
    "u_ticket_classification": "Incident",
    "impact": "4 - Low",
    "urgency": "4 - Low"
}

```

Now this gives me results as follows -

```auto
Rule Description: {{context.rule.description}} Number of Events: {{state.signals_count}} Results: {{{context.results_link}}}

```

Issue: The results are being displayed in the same line. I rather want this as follows in new lines-

```auto
Rule Description: {{context.rule.description}} 
Number of Events: {{state.signals_count}} 
Results: {{{context.results_link}}}

```

---

<div class="post-metadata">

**Author:** ![austinsonger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/austinsonger/32/78994_2.png) [@austinsonger](https://discuss.elastic.co/u/austinsonger)\
**Post date:** [May 9, 2021, 8:38pm UTC](https://discuss.elastic.co/t/way-to-place-new-line-space-using-webhook-request/272413/2 "2021-05-09T20:38:43Z")

</div>

My example might help you, it is what I use for JIRA. You first need to understand how ServiceNow Renders items. I had to study JIRA rendering [Text Formatting Notation Help - Jira (atlassian.net)](https://securecompliance.atlassian.net/secure/WikiRendererHelpAction.jspa?section=all) first so I could include the correct syntax to get what I wanted.

[Elastic SIEM Connector to JIRA Service Desk Template #JIRA #Elastic (github.com)](https://gist.github.com/austinsonger/998b3d784eb5f9c040276ac7c4c9f5c2)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/0/002ae57abf37c3f7d36ca1e575b8ae25e535459d.png)

[austinsonger/Elastic-Security: Repo for Automations and other solutions for Elastic SIEM/Security. (github.com)](https://github.com/austinsonger/Elastic-Security)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 6, 2021, 8:39pm UTC](https://discuss.elastic.co/t/way-to-place-new-line-space-using-webhook-request/272413/3 "2021-06-06T20:39:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
