Forums

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

Hide the field or tab on view screen

Lakshmi CH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2025

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)

}

Con_data field.png

3 answers

1 vote
Thorsten Letschert _Decadis AG_
Community Champion
July 24, 2025

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

0 votes
Erik Buchholz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2025

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

0 votes
Shawn Doyle - ReleaseTEAM
Community Champion
July 24, 2025

Hi @Lakshmi CH 

Have you tried removing the fields from the screens?

 

Suggest an answer

Log in or Sign up to answer