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,644,555
Community Members
 
Community Events
196
Community Groups

Display message when select a ticket type

Heshan Manamperi
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.
Jan 14, 2019

Is it possible to show a message when selecting a ticket type? For an instance, when selecting BUG ticket type, it should show an error or a warning message under the ticket type field. Can you guys help me to solve this?

I tried the following script with Behaviours but not works

getFieldById ("project").clearError();
getFieldById ("project").setHelpText("<div class=\"aui-message error\">This is the text</div>");

1 answer

1 vote
Joshua Yamdogo _ Adaptavist
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.
Jan 14, 2019

Hi Heshan,

You can use the setError() method for the field. See https://scriptrunner.adaptavist.com/latest/jira/behaviours-api-quickref.html

Regards,

Josh

Joshua Yamdogo _ Adaptavist
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.
Jan 14, 2019 • edited

If I remember correctly, you can also do something like this if you want your own custom HTML:

description.setHelpText("<a href='http://google.com'>Google</a>")

For example, that should place a link to Google under the field on the form.

Regards,

Josh 

Heshan Manamperi
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.
Jan 16, 2019

Hi Josh,

I need to have this under Ticket Type field. For an example, the message should display when I select STORY ticket type.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events