# The great “useful snippet” topic

**URL:** <https://community.silverbullet.md/t/the-great-useful-snippet-topic/59>\
**Category:** General\
**Created:** [January 26, 2024, 7:43pm UTC](https://community.silverbullet.md/t/the-great-useful-snippet-topic/59 "2024-01-26T19:43:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)\
**Post date:** [January 26, 2024, 7:43pm UTC](https://community.silverbullet.md/t/the-great-useful-snippet-topic/59/1 "2024-01-26T19:43:30Z")

</div>

Have you implemented a useful [snippet](https://silverbullet.md/Snippets) that others may benefit from? Post it here!

---

<div class="post-metadata">

**Author:** ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)\
**Post date:** [January 26, 2024, 7:45pm UTC](https://community.silverbullet.md/t/the-great-useful-snippet-topic/59/2 "2024-01-26T19:45:58Z")

</div>

By kneel on [Discord](https://discord.com/channels/1028543811191836782/1028543811984568373/1200483893657223328):

# Turn the JIRA ticket on the current line into a JIRA link

```auto
---
tags: template
description: Turn the current line into a Jira URL
hooks.snippet:
  slashCommand: jira
  matchRegex: "(\\s)([A-Za-z]+-\\d+)(\\s)"
  command: "Turn into Jira URL"
  key: "Ctrl-q j"
---
$1[$2](https://COMPANY.atlassian.net/browse/$2)$3

```
