Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

[JIRA] Hide Projects at Project field for users with no permission at Create Issue Screen

changmle July 15, 2019

Previously, we used javascript in Announcement Banner to hide the Project Field. However, if a user is in two groups and above, the user must be able to choose which Project. In order to this, I have remove the line $('#project-single-select').parent().hide() from our script.

 

But now users who are only in 1 project is able to see other Projects during the selection of Projects field in the Create Issue screen, which they do no have permission for those projects.

 

Now, I want to either HIDE the project field for these users or only show the list of projects that they have permission for at Create Issue screen. 

What should I do to achieve this?

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2019

Hi Emily,

If I understand your concerns here it sounds like you have users that can see project names in the create issue screen, but these users should not see these because they do not have permission to create there.

However I am somewhat confused here.  In my own testing in Jira Server, I found that users that do not have the create permission for a particular project cannot see that project listed at all when in the create screen.   I am curious if perhaps your Jira site is somehow granting these users that permission to create, but perhaps blocking the creation of issues through the use of workflow conditions/validators or issue security.   One quick way to test this would be by using the Permission helper to determine this.

If this doesn't help, I'd like to learn more about your environment to see if we can help.  Could you let me know what version of Jira you are using here?  And also I'd be interested to see what your javascript in the announcement banner looks like.  Perhaps I can investigate this further if we understand more details about this environment.

Regards,

Andy

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events