Adding a Horizontal Rule to separate section of Issue Entry form??

I think this can be done by creating a Custom Field. The problem is, I'd need a new cusotm field for each HR I want. Is there any way to use the same field repeatedly in a form?

By the way, I attempted to add HR's using JS in a custom field's description but it doesn't work. Perhaps jira page doesn't allow appending new elelments?

Any ideas?

1 answer

1 accepted

0 vote

It should work, try something like:

AJS.$(function () {

It's a bit harder in jira5, but you can still do this.

Thanks, but it doesn't work, this is what i tried:

<script language="JavaScript">





nothing happens when I do that. And there is a div there, I can edit the dom with chrome and insert an HR manually and that works.

> Thanks, but it doesn't work

Yeah, but what I put does work, because I tested it.

You don't mention what jira you're on, but that fieldarea stuff is an old version. If it's an element ID then you need a #, ie AJS.$("#customfield_10510FieldArea")

No, it doesn't matter. The IDs changed between one version of jira and the next around that time, I think FieldArea was downcased. Can you paste the bit from the html source that contains that element, so we can check.

NB - this is one problem with doing this, you will end up needing to change it quite often.

I'm on 4.1 Jira. I added the hash and still nothing. I do have javascript in other fields and that works. Does this code need to be in a specific field's description? I would imagine not.

This worked for me:

<script language="JavaScript">





Please pardon my ignorance but is the above still valid in JIRA 6.3? Where exactly would i need to put the above code fragment?

the last 2012 comment adds some blank pixels below a field, but doesn't show any kind of horizontal rule on v7.1.9

Works for me - perhaps it's the styling of the hr

Where are you putting the content?  In the description of any field?  Not working for me either.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

705 views 6 13
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you