Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

To able to hide the " Attachments " in Jira 6.1.5 ?

Coskun February 3, 2014

Hello ,

To able to hide the "Attachments" section from Jira-user based on their group.

Example: "company-users" group can view attachments section while " external - users" group cannot.

How can I do this case ? or which way ?

Thanks in advance.


6 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Paul Clark _Redmoon Software_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
February 25, 2014

Hi Coskun

thanks for the response

I will have a look at trying to hide/remove the attachment details. Is this only for when a JIRA Issue is closed? I don't have a migration facility at the moment but I could look at writing one.

Attachments can be turned off by a JIRA System Admistrator or JIRA Administrator with Global Permissions. Navigation to Admin System page, click on Attachments under the Advanced heading. This will open the attachments page. Click edit settings and disable Attachments and turn off thumbnails and zip support. Attachments can still be seen but not added.

For future responses can you please send an email to paul.k.clark@gmail.com.

Thanks

Paul

0 votes
Coskun February 24, 2014

Hi Paul, firstly thank you for your interest.

I installed and configured the "Document Vault for Jira" with eval. license in myjira.I configured to Doc.Vault Section according to group visibility.It is OK.In addition,I have a critical question.I understand that, there will be two sections (Attachments(Jira) & Document Vault ) in a issue page .Well, After I start using the add-on, how can I hide the old attachments according to group users. Namely,is migration processing possible from jira attachment to Doc Vault ?

Thanks in advance.

0 votes
Paul Clark _Redmoon Software_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
February 23, 2014

Hi Coskun, I know this post is really old but in case you are still looking I have a plugin that I think should be able to do this. It's called Document Vault (https://marketplace.atlassian.com/plugins/com.redmoon.jira.documentvault) and is an independent attachments system within JIRA.

Access can be confined to a group of users and/or Issue reporter and/or assignee. Unauthorised users are not able to view the attachments and the attachments related comment. There is also a project level search page to view attachments (that you are authorised to see) within the project. I am also open to suggestions if there is particular functionality you want added.

0 votes
Coskun February 5, 2014

any suggestion ?

Thanks.

0 votes
Coskun February 4, 2014

Hello ,

I've come to the final stage actually with java-script in Jira 6.1.5

What did I do ?

I wrote some java script in Announcement Banner.

<script type="text/javascript">

AJS.$(document).ready(function() {

var userName = AJS.$(document).find("#header-details-user-fullname").attr("data-username");

if((userName == "XXX" ))

{

var node1 =document.getElementById('attachmentmodule');

var node2 =document.getElementById('attachmentmodule_heading');

var node3 = document.getElementById('attachmentmodule').getElementsByClassName('mod-content')[0];

node.style.visibility = 'visible';

node1.removeChild(node2);

node1.removeChild(node3);

}

});

</script>

I can hide the attachments in person-based according to the code above.
But, I have an other problem.
Example: company-users group can view attachments section while external - users cannot. OK.
But, when external users attach a file on page , they can see attachments If they don't refresh page.
If they refresh page , there is no problem.
My new question ; When attach process is done, how can I refresh to page automatically with jquery or java script.Or other way ?
Thanks in advance.
0 votes
darylchuah
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 4, 2014

Currently, you can only set the Create Attachments project permission in that issue's project to the particular group.

However you are referring specifically to only View Attachments permission, this feature is not being available yet.

There is already a feature request being raised in here which is regarding on Separate View & Create Permissions For Attachments:

Please feel free to vote to increase its popularity and also add youself as watcher to receive any latest feedbacks and updates from the user/developer regarding on this feature request.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events