I am trying to use permissions assigned to an individual/ group to determine the visibility of certain fields. Users from group XYZ should not be able to see Field1 while rest of the groups should be able to. How can I achieve show/ hide feature using script runner?
You can use ScriptRunner behaviour. You can find an example here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This does not seem to be helpful. There's nothing in the Behaviour description that hints at reading information from the current user's profile.
https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Behaviours-script-to-check-user-s-role-membership/qaq-p/384439 did help a lot more.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.