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

How do you add a helper text above a field?

What is the script for adding a text as a behavior ABOVE a field? 

1 answer

1 accepted

0 votes
Answer accepted
Kristian Walker _Adaptavist_
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 16, 2023

Hi MM6161,

Are you using Jira Server/Data Center or Jira Cloud.

Using built-in Jira, you can set a field description on the field configuration page and this will add in the text below the field that can be used to explain to a user how to use the field. 

If you are using Jira Server/Data Center then you can use the behaviours plugin to add custom help text when the create screen loads using the setDescription() method and the tutorial here explains how to do this.

I hope this information helps.

Regards,

Kristian

I’m using Jira Server. I used that script but not sure if it worked. I want to add a helper text to a transition screen above a field. 

Kristian Walker _Adaptavist_
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 16, 2023

Hi MM6161,

Unfortunately, adding text above a field in Jira is impossible. You can only add text below the field on any screen using either of the approaches mentioned above.

Regards,

Kristian

Like MM6161 likes this

Thanks Kristian for your help! 

Does this sound correct. 
def attachmentText = ‘………’

 

//getFieldByName(‘Attachment’) .setDescription(attachmentText)

Kristian Walker _Adaptavist_
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 16, 2023 • edited

Hi, MM6161,

This looks correct.

One thing I would advise is referring to fields by Id instead of name in scripts, as if you have 2 fields with the same name inside your instance this will cause the field not to be found.

I have just done a test adding a description to the assignee field to confirm this works on a transiton screen and can confirm it works as shown in the screenshots below.

Screenshot 2023-11-16 at 13.32.59.pngScreenshot 2023-11-16 at 13.33.06.png

Regards,

Kristian

Thanks Kristian. You’re awesome! I’ll come to you with all my questions! 

Kristian Walker _Adaptavist_
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 16, 2023

Hi MM6161,

You are welcome.

Can I please ask you to accept the answer if it has helped to solve your requirement?

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer