Forums

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

Hide tabs with Scriptrunner

Romain VELON
Contributor
September 11, 2018

Hello,

I am using some Scripted fields to do some automatic calculation. E.g. calculate my margin between an estimate and time tracking. 

These fields are only displayed in my View screen in a specific tab called "Metrics". I'd like to hide that tab from a specific group of user.

I created a Behaviour with Scriptrunner and used hideTab(2). The tab is correctly hidden in Edit or transition screens. But not in View screen. Is there a way to do it?

Thank you for your help.

Romain

1 answer

2 votes
Alexey Matveev
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.
September 11, 2018

Hello,

I am afraid, you can not do it. Behaviours do not work on the view issue screen.

Orkun Gedik
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.
September 13, 2018

Exactly, Behaviors work on only during issue creation or transition. Therefore, @Romain VELON need to find another way. Did you try Permissions? Also, you can write a groovy script which changes the current view's JavaScript. Ofcourse it is pretty hard and not recommended :)

https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events