Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Products
  • Jira
  • Questions
  • 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?

Mohin Uddin
Contributor
September 6, 2012

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

0 votes
David at David Simpson Apps
Atlassian Partner
October 2, 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:

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 2, 2012

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.

Mohin Uddin
Contributor
October 2, 2012

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


0 votes
SimonS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 6, 2012

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


Mohin Uddin
Contributor
October 1, 2012

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events