How to disable Project Roles drop down while saving the Filters?

Hi All,

Is it possible to disable the Project Roles drop down while saving the filters.when we save the filters using the Project Roles with "Administrators" and "Users" this filter is visible to all the users in jira.So We need to disable this drop down or we need to fully remove the third column under the " Add Shares " field.

Kindly suggest what need to be done to achieve this.

Thanks,
Jayasingh

7 answers

1 accepted

0 votes
Accepted answer

Hi Ahmad,

Thanks for your reply.

If we remove the project Roles will it affect any funtionality in jira. currently i deleted the Users Role from Administration->Users->Roles. Now i am not able to see the Project Roles as Users in drop down.But i am afraid will it affect any functionality of jira. If i want to add the deleted project roles how to add? I tried to add project roles as users again but it not getting reflect again in Project Roles dropdown values.

Kindly suggest

Thanks,

Jayasingh

Hi Jaya,

Apparently, I am not able to confirm the possible issues that may arise due to the customization that you have done. I hope that you tested the customization before applying to your production instance.

Anyway, if you customize the ManageFilters.java file that I pointed earlier, I believe that this will only remove the filter sharing for Project Role option. But if you modified the source to remove the Project Role completely from JIRA (Administration > Users > Roles), I can't verify what other functionalities that may be affected.

But I know that the following configurations depends on project roles:
- Permission Schemes
- Notification Schemes
- Issue Security Schemes
- Workflow Conditions (users in role condition)
- etc

Thanks.

Hi Ahmad,

Please let us know where this particular HTML tags with drop down has been defined . I mean the name of the jsp file which is pointing to this.

Thanks,

Jayasingh

Hi Ahmad,

Thnaks for your suggestion. I have removed the project roles drop down by modifying the .vm file. Now i am not able to see those drop down values.

Cheers,

Jayasingh

Hi Jaya,

Apparently, I am afraid that it may not be possible for us to disable the Project Roles section in the 'Share Filter' option when saving a filter.

Basically from the UI, we can see that when selecting the share category by Project, you are given the control to select the project, and the relevant project roles that you want to share the filter with. This basically allows you to have more control to share filter to other users as needed.

Anyway, I'm sorry to let you know that this behavior may not be configurable.

Cheers!

Hi Ahmad,

Thanks for your reply. whatever the functionality is provided in jira is ok from other user point of view who are using Project role functionality,means who are using Project roles to map users in jira.

We are not using Project Role ,insted we are creating gorups and mapping groups with project and permissions.

request you to provide in which jsp page we need to make change so that we will get onlt 1 option in dropdown that is all

Hi Ahmad,

request you to share the jsp details where we can remove project role values or we can disable these values.

Thanks

Hi Sayali,

I run a quick check on JIRA 5.2.x source file, and I believe that the related Java class file will be ManageFilters.java

The file is located in the package com.atlassian.jira.web.action.filter

I hope that this will help!

Hi Ahmad,

request you to update on the above query ASAP as we are stuck in this task.

Thanks

Thanks Ahmad,

I will check on this and let you know.

Appriciate your responce.

Hi Ahmad,

Could you please let us know from where we can remove [Users and Administrator ]values from jsp file so that instead of touching jira configuration JIRA (Administration > Users > Roles), we will proceed with Jsp file or class based solution. We have checked many jsp files but not able to find where exactly we need to do change to remove above 2 options. When we are checking page view source of that filter by proving all values w.r. to project option then we are getting following code for project Role.

<select id="projectShare-role" name="roleShare" >
<option value="">All</option>
<optgroup label="Project Roles" id="projectShare-role-group">
<option value="10002">Administrators</option>
<option value="10001">Developers</option>
<option value="10000">Users</option>
</optgroup>
</select>

Could you please let us know in which jsp we will get this so that we can comment that part or we can remove.

Waiting for your valuable response.

Thanks

Sayali

Hi Ahmad,

Waiting for you reply.

Thanks

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,592 views 17 21
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