Dear Atlassian Community,
I would like to hide some custom fields in the Advanced Issue Search section of the Filter Tab.
In short, in my mind, I would like to restrict some users to some specific projects. and some custom fields should be hidden for some projects.
At first I thought it could be possible with the (project) field configuration. But it seems that hiding a field in the field configuration can work in a custom field. But the user can still use the custom field in a JQL function in the filter section.
Any thoughts?
Best regards, Geoffrey
There's quite a lot to talk about here, especially on the fields side, but I'll try not to wall-of-text you and expect some questions where my attempts to shorten things make it unclear.
There are three questions here really:
Restricting users to projects - this is done with user roles/groups/individual memberships in the project's user/permission area. On the most part, this is intuitive when you start looking at permissions and roles, you'll see that essentially it is just "give named user a permission via a role/group/rule and they can use the project". You don't "restrict" people, you just do not give them permission to do it. The thing that makes this complex for us is that Atlassian default to "everyone can do everything", doing things like "when creating a new project, grant the default permission that 'all logged in users can view, create, edit and transition issues'", and you have to remove that from projects that you want to "restrict" people from
Second question is about Cloud's team-managed (next-gen) projects. The team owning the project can add fields to these, and the fields there are localised, and hence don't exist in other projects
The third question is about fields for company-managed (classic) projects. Think of these as global objects that projects can be told to use. Add a field called "Dave" to the system, and then you can tell the projects whether they should work with "Dave" and how and where. The really complicated bit of this is that there are three places to look at the field, and they all apply at a project and issue type level (so in one project, Dave applies to bugs, but is not seen on features, for example)
So, to answer "field is still visible to search", yes, they mostly will be, because a field is a global thing, and JQL is not project locked, it allows you to search for everything it can see.
There are some cases where some intelligence is applied. If you use the simple search, or, in some cases, define a set of projects up-front, then the search can know that some fields may not be valid for the project, and hide them in the list. But the criteria for that is only the context - Dave is a valid field to suggest reporting on even if Dave is hidden in all the field configurations and placed on no screens. It's only the context that would stop Dave from being suggested as an option in a search that starts "project = X"
TLDR: to thoroughly hide fields from projects, use their "context", but the search isn't going to stop seeing them most of the time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.