Hi Team,
I was trying to hide a field in the view because it contains confidential data. This information should only be visible to a select group of people. To manage this, I created a group and added the appropriate individuals. I then attempted to hide the field using a script runner behavior. However, even with this adjustment, the field still appears in the ticket view if it contains data.
As an alternative, I placed the field in a specific tab and tried to hide that tab. I successfully hid the tab with the field during the creation process, but it still shows up on the view screen.
I used this script. Is there a possibility to hide it from the view screen, but the specific user can also edit and update the field once the ticket is created?
def user = Users.getLoggedInUser()
if (!user.isMemberOfGroup('Confidential Data Custom Field Access') && (getActionName() in ["View Issue", "View"]))
{
hideTab(1)
}
Hey @Lakshmi CH ,
As you've already discovered, Jira does not provide out-of-the-box field-level security.
A remark regarding the workaround you're trying to implement: while I can't help you with the script, even if it worked, this would only affect the issue view and not prevent users from seeing/leaking data from within the issue navigator or JQL usage.
I'd recommend having a closer look at some of the apps on the Marketplace, that offer the field-level security mentioned above: https://marketplace.atlassian.com/search?hosting=cloud&product=jira&query=secure+custom+field&useCases=Custom+fields
Regards,
Thorsten
Hi @Lakshmi CH ,
I had a similar requirement and was able to solve it with creating an additional web panel which contained some script to hide it self and the other piece of ui that couldn't be hidden with the hide UI element fragment.
Take a look at https://community.atlassian.com/forums/Jira-questions/Re-Hide-UI-worklog-tab/qaq-p/1707496/comment-id/949376#M949376
Regards
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.