Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

ScriptRunner Behaviour Initialiser to show/hide tab

Deleted user August 29, 2016

Hello everyone

We currently have a tab on our create issue screen which is only really useful for users with the permission "assignable user".

Is there a way to hide this tab for other users without this permission? perhaps via a behaviour initialiser?

Example:

if(user is assignable user)
{
	tab.show()
}

else
{
	tab.hide()
}

Would something like this be possible?

Thanks for any help

Best regards

Marius

1 answer

0 votes
JamieA
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.
August 30, 2016

We don't have support for this yet in behaviours: https://productsupport.adaptavist.com/browse/SRJIRA-1385

You could use the JIRA api to list all fields on a tab, and hide them all, but it would leave an empty tab.

Deleted user August 30, 2016

Thanks for your help but unfortunately, I can't view this issue.

JamieA
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.
August 30, 2016

sorry, you should be able to now

Deleted user August 30, 2016

works! already watched and voted smile thanks

 

slothstronaut
Contributor
March 7, 2018

Bildergebnis für but how

But hooow? ;D

 

 

It is: 

 

 

if (/* your condition */) { 

hideTab(
0)
disableTab(
1)
switchTab(
2)
}

described in official docs here .

 

Like Sune Vester Lindhe likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events