How to hide tabs under Activity on issue view screen?

manikanta ch September 25, 2020

Hello All,

Is it Possible to hide all Activity tabs(All, Work Log, History, Activities, Emails, Transitions) expect comment on the Issue view screen for a particular project?.

Thanks in advance,

CH

3 answers

2 votes
Joévin VUILLEMET December 14, 2022

Hi @Michael Ries 

 

I had the same problem few weeks ago and i manage to resolve it like this (with server/data center scriptrunner):

- create a "Show a web panel" fragment 

- define its key et set a high Weight, then you can manipulate the different tab with their css id (use inspect html element to find it), do not forget to hide your fragment in the css (here the line : #let-only-comment-tab : display : none)

fragment.png

 

Hope this will help you

Michael Ries December 14, 2022

Hey,

 

thank you so much, this seems like a solution! I copied your script but I still got an issue since it still does show the acitivity, Could you tell me what i need to add, so it also hides the activity TAB.

 

thanks again in advance :)

image.png

Joévin VUILLEMET December 14, 2022

When I inspect the html code of one issue on my Jira, I find this:

fragment.png

Try to add this in the CSS : 

#activity-stream-issue-tab {

 display : none !important:

}

 

If this work, you can vote for my answer to help others people :)

0 votes
Dalibor Gasevic November 28, 2023

@Joévin VUILLEMET thanks a lot for your proposal!

I implemented it like you suggested and it works.

One thing I still need is: when I switch to another issue, it will still show the tab that I don't want to see, unless I click "refresh" on that website.


Can you imagine what the issue is?

Thanks,
Dali

0 votes
Matt Doar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 25, 2020

Possibly with ScriptRunner in Server/Data Center

Matt Doar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 25, 2020
manikanta ch September 25, 2020

Thanks @Matt Doar .

May i know the module name to hide all tabs except comment. I have tried with the below module it is not working.

Hide.PNG

Joévin VUILLEMET March 16, 2021

Hi @manikanta ch 

 

Did you finally find a solution to hide all tabs except comment?

 

Thanks in advance

Michael Ries December 13, 2022

Hi @Joévin VUILLEMET 

 

currently the same problem here.

 

any solutions?

 

thx n greetings

Joévin VUILLEMET December 14, 2022

I posted a solution, if you use scriptrunner, this may help you :) 

Suggest an answer

Log in or Sign up to answer