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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to Hide multiple Tabs using Behaviors in jira

how can i close multiple tabs using Behaviors, Currently i am able to hide only one Tab, but i want to hide multiple .. i have added the code snippet below please anyone can help me..


if(getFieldByName("Project Type").getValue() as String != ''){
def projectType = getFieldByName("Project Type").getValue() as String

if(projectType == "Waterfall") showTab("CITMS Mandatory Business Requirements")
else hideTab("CITMS Mandatory Business Requirements")

//else showTab("Control and Security Requirements")


Using this i am able to close only one Tab, but like this tab i want to close another 2 tabs..

1 answer

1 accepted

0 votes
Answer accepted
Antoine Berry Community Leader Nov 26, 2019

Hi @J Manas Kumar ,

Simply use add hideTab multiple times : 

else {
hideTab("tab 1")
hideTab("tab 2")


Thanks For your reply @Antoine Berry  but Sorry i think i have posted the different requirement.

Let me explain my complete requirement, i have 9 tabs total, out of those i  need to show only 6 tabs when Project Type == "Agile" (3 tabs will be hidden).

and i need to show all 6 tabs + those 3 tabs(which are hidden)  when Project Type == "Waterfall"


any idea..?

Hi @Antoine Berry  issue resolved .. your ans helped me thanks...

Antoine Berry Community Leader Nov 26, 2019

You are welcome. If the answer is satisfying, please mark it as answered or let me know if you want me to edit it to fit the question more accurately.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Do Not Lose your Customer’s Trust

Missing deadlines is one of the biggest problems every team lead wants to avoid when dealing with managed services. When the customer contracts your company to help with IT services it is expected th...

24 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you