Forums

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

Hide tab from view screen

Dan27
Contributor
December 17, 2018

Hello,

I would like to Hide tab from view screen. Inside this tab there are some custom fields.

Attached pic with the tab.

 

Any idea how can I do it?

DanielHideCRM.JPG

4 answers

0 votes
Manuel
Contributor
June 15, 2020

Was anyone able to find a solution? With script runenr i can olny hide tabs with:

hideTab()

in transition screens, but not in the issue view.

 

Best Regards

Manuel

0 votes
Dan27
Contributor
December 23, 2018

Hi @Alexey Matveev , @Leo

I prefer doing it with Announcement Banner.

This is the 'F12' lines, I need to hide the 'CRM' tab for loggen in user 'dmor':

 

var titleUser = document.getElementByClassName('hidden parameters');
var length= titleUser.length;
var i=0;
while (i<length)
{
if (titleUser[i].children().value=='dmor')
{
AJS.$('.tabs-menu .menu-item #aui-uid-4').parent().attr("style","visibility: hidden")
}
i++;
}

The hidden line (marked) worked itself, But with the condition it didn't work..

Can you see the problem?

Dan27
Contributor
December 23, 2018

dmor.JPG

0 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.
December 17, 2018

Hello,

You could do it with the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=server&tab=overview

You could create a Live field with a code like this:

lfHideTab("my tab");

You can find more info about Live Fields here:

https://confluence.cprime.io/display/JJUPIN/Live+Fields 

0 votes
Leo
Community Champion
December 17, 2018

Hi @Dan27,

Create separate screen for "View Issue" and remove those fields which you want to hide in View Issue screen 

-Leo

Dan27
Contributor
December 17, 2018

Thanks for the quick answer. @Leo

I want to hide the tab for all the users, except users in a specific group.. Is it possible?

Like # people like this
Bradley May 6, 2019

Did you get a solution to this?

Dan27
Contributor
May 7, 2019

No..

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events