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

How do I add an inline text for a custom field in JIRA?


I am wondering if there is a way to add an inline text for a custom field (single line or multi line) in JIRA? Once the user clicks inside the field or starts typing, the inline text should disappear. Note, I don't want that inline text to be considered as an existing value. What I mean is that if the user doesn't enter anything in that field and if I have a field required validation, I would like the validation to work regardless of that inline text. I am sorry if that is confusing.

I am guessing I have to add some script to the custom field description but I don't know how to write up the code. Please help! 




2 answers

1 accepted

1 vote
Answer accepted

Hello, Shahriar.

I believe you're talking about adding a placeholder in the field.

You can do this with a "Hideable Free Text Field (unlimited text)" field type.

Create the custom field with that type and then you can add the following into the description field:

<script type="text/javascript">
document.getElementsByName('customfield_10700')[0].placeholder='This will appear as a placeholder';

Keep in mind to add the code in the right description, go in the custom field page, click in the Cog icon on the right, then in Edit.

Also, to get the field's ID to put in the "getElementsByName" function, check the URL in the edit page itself:


In this case, the element name should be "customfield_10700".

Kind regards,
Maurício Karas

Hi Maurício, 

Thank you, Sir! You are a genius. It worked beautifully! Thank you so much for your help. 




I tried this and while it did add a placeholder I found that when I went to the Custom Field page (the one with the list of custom fields on), this page with this field would not load. I suspect it is because the description is now read only and a javascript error is being generated.

Is this the case for everyone or have I missed something?

@Mauricio Karas Thank you, your solution worked perfectly! 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

239 views 1 2
Join discussion

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