How can we make a field wich will be automatically transformed into a link.

Алексей Сокольский August 26, 2015

 How can we make a field wich will be automatically transformed into a link after filling?

For example I have a link mask like 'http://ggg.com/xdf1111' where four last numbers is the value of the field.

I need to have a field, where I input these numbers 1111 or 2222 e.t.c. I want to see on issue screen this value. But the field must be clickable and lead to  http://ggg.com/xdf1111 or http://ggg.com/xdf2222 depending on it's value (1111 or 2222).

Is it possible?

Target: to integrate JIRA with the tasks in another system.

2 answers

1 vote
Guilherme Nogueira
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.
August 26, 2015

if this field will be filled only with URL's you can use "URL field". Did you try?

"Select Administration -> Issues -> Fields -> Custom Fields -> Add Custom Field , select the URL field type and click Next"

Алексей Сокольский August 26, 2015

No, not just URL. User should input a value like 1111 and get a clicckable "1111" on the screen, which lead to a url http://ggg.com/xdf?entityid=1111. I mean that a user don't input a url, it must be like a concatenation between url mask and user's input.

Guilherme Nogueira
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.
August 26, 2015

Well I understood. I think you must to create your own template. But there's an workaround, E.g. There is a workflow transition screen with a field that user will input only a value like "1111" and in a postfunction you concatenate your url "http://ggg.com/xdf"; + USER_INPUT and copy this value to a URL field. Hope it help. BR.

GabrielleJ
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.
August 26, 2015

+1 on Nogueira's answer.

0 votes
Guilherme Nogueira
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.
August 27, 2015

Hey check that:

 

http://www.jontetzlaff.com/blog/2012/08/23/converting-string-urls-to-clickable-links-with-javascript/

 

You can implement by using scripted postfunction.

 

BR.

Suggest an answer

Log in or Sign up to answer