How can I replace "Upload Global copy for reference" text instead of attachment text in the attachment filed which is a system field?

How can I replace "Upload Global copy for reference" text instead of attachment text in the attachment filed which is a system field?

2 answers

This widget could not be displayed.

Hi Mohin,

I may not be understanding your question, but I think you're asking if you can replace the generic "attach file" text with the text "Upload Global copy for reference". This should be possible with custom CSS or JavaScript.

This is possible by default in Confluence, and there is a hacky workaround in JIRA:

JIRA: https://answers.atlassian.com/questions/54624/customize-jira-with-my-own-css

Confluence: https://confluence.atlassian.com/display/DOC/Styling+Confluence+with+CSS

-Simon


Could you please inform me How can I add follwing multiple attachment field to the form.I would like to replace generic "attach file" text with the text following texts.

Documentation

1

Upload CV

Upload Box

2

Reference 1

Upload Box

3

Reference 2

Upload Box

4

Competency Sheet

Upload Box

5

NDA

Upload Box

This widget could not be displayed.
David Simpson Community Champion Oct 02, 2012

If you're talking about Confluence and the comment to @Simon Tower's question is what you really want...

Browse to Confluence Admin | Look & Feel | Custom HTML

Paste the following into At the end of the HEAD:

<style>
  AJS.toInit(function () {
    var $attachmentsForm = AJS.$('form#upload-attachments');
    $attachmentsForm.find('#more-attachments-link').click(); // expose each of the 5 file upload inputs
    
    var $li = $attachmentsForm.find('li');
    var inserts = ['Upload CV','Reference 1','Reference 2','Competency Sheet','NDA'];
   
    for (var i = 0; i < inserts.length; i++) {
      AJS.$($li[i]).prepend('<span style="display:inline-block; width:140px;">' + inserts[i] + '</span>');
    }
  });
</style>

This will give you something similar to:

That trick is for Confluence. Jira doesn't have custom html.

You could try something similar in the "announcement banner", but I don't think the Jira "attachment" field will support it fully, and I don't think it's going to work unless you do some coding in the core of Jira or write a plugin to provide a work-around.

Hi David,

Thanks for your information.I Can't see this option "Custom HTML" from my admin panel.I am using Jira version 4.0.2.Could you please tell me how it's possible to add those?

Thanks

Mohin


Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

151 views 16 7
Join discussion

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