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,558,787
Community Members
 
Community Events
184
Community Groups

How to define a URL link in Behaviour script

Hello,

I want to define a hyperlink in the behaviour script, So when creating a Jira ticket , they will see the link And click that url.

Condition is that Hyper link "google"to be visible at the bottom  not at the top.

This is my script but when i click on it while creating a ticket , it dont work..It works in view mode.

Can u plz help

 

My script 

 

def hyper="[google|http://google.com]";
def desc = getFieldById("description")
def defaultValue = """ """+ hyper+""";
*Change Description*

*Impact Assessment*


*Rollback Plan*

if (!desc.formValue) {
    desc.setFormValue(defaultValue)
   
}

1 answer

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 04, 2022

Hi @Sharadkumar 

Try this by placing it as a behaviour to the field you want:

def formField = getFieldById(getFieldChanged())
formField.setHelpText("Please visit this " + "<a href=\"https://google.com\">link</a>")

url link.png

Thank you very much Alex.

Its working fine now :)

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 17, 2022

@Sharadkumar kindly mark my answer as accepted in order to help others with the same question. Thanx!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events