Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Single line custom field with alias link

Alexander Gomes November 4, 2022

Dear Atlassian Community,

 

I need a single field, where I can add very longs links, but the are displays as an alias.

Example: My failed google search 

 

I can do this with multi-line, but this takes to much vertical space. Is it possible (maybe with scripts) to archive this single-lined?

Thanks,

Alexander

1 answer

1 vote
Tim Perrault
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2022

Hi @Alexander Gomes 

Wiki markup should help with this if I understand the question correctly.

[http://jira.atlassian.com]
[Atlassian|http://atlassian.com]

Creates a link to an external resource, special characters that come after the URL and are not part of it must be separated with a space.

The [] around external links are optional in the case you do not want to use any alias for the link.

Examples:

http://jira.atlassian.com
Atlassian

 

Example

[link|https://somereallylongurl.com/morestuff/and/things] would just show "link" as a link to the url you provided on the view issue screen

~Tim

Alexander Gomes November 9, 2022

Hey Tim,

I already tried this, it's not working, (...)[...] and [...][...] also not working. I way only able to get it working in a multi-line with rich text editor, but there it's easy, just click the "link" option :S

Please have a look at the screenshot: 

image.png

Tim Perrault
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2022

Found this issue https://jira.atlassian.com/browse/JRACLOUD-69877

Looks like wiki markup in single line text fields are not supported.

"There are two other custom fields we recommend using if rich text is required in the new issue view:

  • “URL Field” - if all you need is to display a web URL as a hyperlink."

Maybe use the URL field?

Alexander Gomes November 9, 2022

Hi Tim,

the URL field only support URLs, I wasn't able to use an alias / short there. Our URL are really long and I just wanna display Release Version (10 digits).

 

But thanks for trying, maybe with Scriptrunner?

Tim Perrault
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 9, 2022

The only way I can think of to do it in scriptrunner is a scripted custom field, but I don't believe they are available to cloud users.

Maybe using automation but I can't find anything.

 

Honestly the best option is to deal with the vertical space on the paragraph field.

Alexander Gomes November 10, 2022

In that case I can also use 2 field, one with the full link, one with the short, and script the short one to be the short version of the long. But feels strange to me that Jira isn't able to handling such simple request :(

Suggest an answer

Log in or Sign up to answer