Forums

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

Is it possible to hide a page/section from a user in Jira Service Desk with ScriptRunner

Silas Alexander Lykke Rosenskjold
January 11, 2021

Hi everyone,

 

I have two quick about hiding elements/pages from a user in Jira Service Desk.

 

Is it possible to hide a certain page inside a project from a specific user with ScriptRunner?

I would like to hide the page /customers in a service desk for a specific service desk agent.

 

I know there's a built-in script that can hide the menu icon for customers.

Is it possible to do on a user-level, so that only a particular user in a project doesn't see that menu icon?

 

Thanks a lot in advance :)

Jira server: 8.13.1

Jira service desk: 4.13.1

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
PD Sheehan
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 Champions.
July 27, 2020

If you attempt to run a script listener on the LoginEvent or DashboardViewEvent, the built-in "event" object will not include an issue and the type of event raised will not be an IssueEvent

So these two lines will not work:

def issue = event.getIssue() as MutableIssue
def event = event as IssueEvent

I'm not clear how you expect the system to know against which issue such custom field changes should be done when a user is just logging in and could be accessing any part of the application or when viewing a dashboard that would contain many different gadgets with possibly many hundreds of issues associated with those gadgets.

TAGS
AUG Leaders

Atlassian Community Events