Show Workflow Related Link

Anna L
Tera Contributor

As an end-user, I can see the "Show Workflow" related link on requested item self service view. According to you, is it a best practice to hide it?

As an admin, I want to see, but as end-user I dont want to see it or go see technical workflow elements! How would i limit to be hidden from end-users.

There is nothing which seems to be intuitive on the Show Workflow button form. Suggestions?

find_real_file.png

1 ACCEPTED SOLUTION

Hi Service,



You have to put additional and condition in your UI action to hide it from others except admin.


gs.hasRole('admin') I.e Replace condition with below line.


!current.cat_item.workflow.nil() && !current.context.nil() && gs.hasRole('admin')


View solution in original post

6 REPLIES 6

Sashi K1
Kilo Guru

If you prefer not to be shown for non-admin users, you can do it by using an onLoad client script



//Hide the 'Related links' section for non-admin users


if(!g_user.hasRole('admin')){


      $$('.related_links_container')[0].hide();


}



Thanks


Hi Sashikanth,


I want to show the workflow with end user. Is it possible?


Anna L
Tera Contributor

just "show workflow" for request item self service view though for end users. itil users can still see it. Suggestions?


Hi Service,



You have to put additional and condition in your UI action to hide it from others except admin.


gs.hasRole('admin') I.e Replace condition with below line.


!current.cat_item.workflow.nil() && !current.context.nil() && gs.hasRole('admin')