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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Add Placeholder Text to Custom Field

Can I add the placeholder attribute to a custom JIRA field in order to present additional info?

It seems I have control over the following properties for a given field:

Edit Field Details:

  • Field Name
  • Description
  • Search Templace

Configure Custom Field:

  • Aplicable Contexts for Scheme
    • Applicable Issue Type
    • Applicable Projects
  • Default Value

Field Configuartion:

  • Visibility
  • Required
  • Render Mode

But I can't find anywhere to modify the placeholder text

The placeholder attribute isn't guaranteed across every browser, but it would be a nice touch to provide additional information for supported browsers.

Here's a complete list of custom field configurations, but I don't see it there.

It might be possible to do with javascript in the element description, but a native option would be much better.

3 answers

1 accepted

1. As the simpliest option - modify "atlassian-jira\WEB-INF\classes\templates\plugins\fields\edit\edit-basictext.vm" this velocity and add placeholder ability (i.e. use description as a placeholder)

2. You can develop your own custom field with full support of placeholders in input.

Just to flesh out option 1

1) You'll have to find your home directory and then navigate to

\atlassian-jira\WEB-INF\classes\templates\plugins\fields\edit\

On my instance, it was right here:

C:\Program Files\Atlassian\JIRA\atlassian-jira\WEB-INF\classes\templates\plugins\fields\edit

2) Then open up the velocity templace file named edit-basictext.vm

Then add the following code to the input element:

placeholder="$fieldLayoutItem.fieldDescription"

3) You'll need to refresh the template cache after making changes:

You can do so by restarting JIRA, or changing the velocity.properties.

I couldn't quite get it to work, but that was what I had tried so far.


Hi Alexey,

Is there a way we can achieve this (placeholder) adding script or editing from UI side because I don't have access to the server.

Thanks

Tej.

Deleted user Oct 10, 2018

Hi guys, just follow up to this, can I remove Custom Field name in Portal and Put it just as Placeholder? 

 

Customer is trying to save as much space as possible.

hi guys, how can i do the same, but for the multi-select component?

thanks

 

Is there any other solution since 2014 to put a placeholder in the comment ?
Actually, we use the comment to create a new JIRA on another project. In this case, we have to type some specific information and sometimes, some are forgotten. So the placeholder should be very useful.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you