# {{issue.url}} and {{baseUrl}} in Jira Automation

URL: https://goingstellar.ro/reference/smart-values/issue-url-baseurl/

{{issue.url}} is the web address of the active work item and {{baseUrl}} is the address of the Jira site. Use them to put a clickable link into a Slack message, an e-mail or a comment.

## Syntax

```
{{issue.url}}
{{baseUrl}}
```

## Works on

- Fields: the active work item and the site
- Returns: a URL as text

## Examples

```
{{issue.url}}
```

The link to the work item, ready to paste into a message.

Result:

```
https://your-site.atlassian.net/browse/WEB-48
```

Run on Jira Cloud on 29 Nov 2026.

```
{{baseUrl}}
```

The site address, for links to boards, filters or other pages you build yourself.

Result:

```
https://your-site.atlassian.net
```

Run on Jira Cloud on 29 Nov 2026.

```
{{baseUrl}}/browse/{{issue.key}}
```

Build the work item link by hand when you need the same address from {{baseUrl}} and the key.

Result:

```
https://your-site.atlassian.net/browse/WEB-48
```

Run on Jira Cloud on 29 Nov 2026.

```
<{{issue.url}}|{{issue.key}}>
```

Slack link syntax: the key becomes the clickable text.

Result:

```
<https://your-site.atlassian.net/browse/WEB-48|WEB-48>
```

Run on Jira Cloud on 29 Nov 2026.

## Pitfalls

- The documentation says {{issue.url}} also gives the customer portal address for Jira Service Management requests. On a software project it gives the normal `/browse/KEY` address.
- String functions on a URL can come back empty. `{{issue.url.length()}}` and `{{issue.url.replace(baseUrl,"")}}` both rendered an empty string (checked on Jira Cloud, November 2026). Build the part you need from `{{baseUrl}}` and `{{issue.key}}` instead.
- Slack and Jira use different link syntax. The `<url|text>` form is for Slack; in a Jira comment the plain URL is enough.

## Related

- [{{issue.key}}, {{issue.summary}} and other issue fields](https://goingstellar.ro/reference/smart-values/issue-fields/)
- [{{issue.comments}}](https://goingstellar.ro/reference/smart-values/issue-comments/)
- [{{project.key}}, {{project.name}} and other project values](https://goingstellar.ro/reference/smart-values/project-smart-values/)
- [{{triggerIssue}}, {{lookupIssues}}, {{createdIssue}}](https://goingstellar.ro/reference/smart-values/triggerissue-lookupissues/)

## Sources

- [Jira smart values: issues (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/)

