Security for the drop-down list

Agafon Petrovsky May 24, 2021

Good afternoon community.

Please tell me how to solve the problem.

It is necessary to organize the differentiation of access rights based on user groups to the values available in the custom field with a drop-down list (single selection). So that only certain items in the drop-down list are available for some users to select, and others are available for other users to select.

Thanks!

1 answer

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 24, 2021

The only way to do that would be to have the users use different projects (and/or issue types), so that you can set up different selection lists for the field.

You could also use Scriptrunners Behaviours module to edit the selection list based on the user using it, but that will only work in certain places, it's not "secure", as it can be bypassed by anyone who knows a bit about how Jira works.

Agafon Petrovsky May 27, 2021

I looked at the descriptions of the features and played with the settings of Scriptrunner (behaviours). This solution can only hide the fields themselves in the issue, depending on the specified conditions, and as it seemed at first glance, they can not hide the drop-down list items themselves.

Please explain how Scriptrunner (behaviours) can be used to hide drop-down list items from certain users.

Thanks!

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 27, 2021

This script does it for issue type restrictions based on role, but the same principles apply to most drop-downs - https://library.adaptavist.com/entity/restrict-issue-types

Suggest an answer

Log in or Sign up to answer