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!
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:
document.getElementsByName('customfield_10700').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".
Is this the case for everyone or have I missed something?
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 ...
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