Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,276
Community Members
 
Community Events
176
Community Groups

How to make CustomField value clickable?

I am working on a scenario where I need to set a default value for a TextField and need to make it clickable as it is a link to a website. 

I know that a text field descriptor can be used to add a clickable link in the descriptor field but I don't need it in the descriptor. I need the link and the descriptor both with separate texts. Is there any way I could populate the link as the default value in the text field and whenever the screen appears, it shows the default value and that default link is clickable as well?

Is there any other CustomField that can do this kind of stuff if Text Field does not support it? 

 

as.png

1 answer

0 votes
Darryl Lee Community Leader Dec 01, 2022

Hi @Jamshaid -

There is a URL Field custom field type that might do what you want?

And you can set a default value for these types of fields.

Hi @Darryl Lee 
Can I make it clickable and pre-populate the value? 

Thanks 

@Darryl Lee 

Could you please give some reference to it as I am unable to find any? 

Thanks 

Darryl Lee Community Leader Dec 01, 2022

Hi, sure! Here's the official documentation, which I highly recommend reading in full, as you want to be careful not to create too many custom fields:

Managing custom fields 

You would be setting up a new Custom Field of type URL, and then setting the default value in the context for that field. There's details on that here:

Configuring custom field contexts 

@Darryl Lee 
Hi 

I have created a URL Field but the value is not clickable. I have setup the value using a script through script runner.

Darryl Lee Community Leader Dec 06, 2022

Hi @Jamshaid -

I see in your other question that when you set the value you include HTML with the <a href> anchor tags. I'm pretty sure you should only be setting the URL as the value.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events