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

Ho to hide subtasks (Issue View) for project ?

Mik Aug 08, 2013

Hi Guys.

Anyone knows how can I hide subtask (on IssueView) for selected project or Issuetype ?

Thanks a lot.

Mik

6 answers

2 votes
T I Aug 08, 2013

There isn't such option in JIRA. But you could use jQuery to hide the subtasks.

Tarun Sapra Community Leader Jan 29, 2014

I won't suggest scriptiing as a solution. it's a bad hack.

0 votes
Mik Aug 13, 2013

Hi Tomasz

Thanks a lot, I made this by jQuery and works fine.

Regards

Mik

Dan Daley Mar 17, 2017

Mik, 

Could you please indicate where you put the script? Noob here

0 votes
Tim Tamir Jan 29, 2014

how did you do it? please share your query?

0 votes
Mik Jan 29, 2014

Hi Tim

I'm using this...( CRM is my projekt)

AJS.$(function() {

window.setTimeout(function(){

if(AJS.$('#project-name-val').text()=="CRM") {

AJS.$('#view-subtasks').hide();

}

}, 150);

});

Regards

Mik

Igori Mar 13, 2017

Hi Mik

Could you please share where you should put script to hide sub tasks ?

Thanks

0 votes
Tim Tamir Feb 02, 2014

Hi Mik, thanks for the quick reply and the script.

Where should I put this script?

I tried to add it to announcement banner as:

<script type="text/javascript" >

AJS.$(document).ready(function() {

window.setTimeout(function(){

if(AJS.$("#project-name-val").text()=="CRM") {

AJS.$("#view-subtasks").hide();

}

}, 150);

})

</script>

but sub-tasks are still visible.

Should I add this script to the browse or view issue page? If so what's the form or file name?

Thanks in advance.

Tim.

0 votes
Tim Tamir Feb 02, 2014

I've changed the script as follows:

<script type="text/javascript" >

AJS.$(document).ready(function() {

window.setTimeout(function(){

AJS.$("#view-subtasks").hide();

}, 150);

})

</script>

and now it hides subtasks from all projects and still I'm using announcement banner.

Also, is there anyway to hide these sub-tasks from Issue navigator or search screen?

Igori Mar 13, 2017

Hi Tim

Could you please share where to put the script?

For example in Atlassian\JIRA\atlassian-jira\secure\admin\views\issuesecurity\viewschemes.jsp

?

Thanks for help

Lokesh Singh I'm New Here Monday

Hi Igori,

 

Did you came to know where we need to add the script? shall this script works for jira cloud?

 

Thanks

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in United States

Topic Tuesday: Agile

Another week, another Topic Tuesday!  Agile has been on my mind a lot lately because I've seen good implementations and bad implementations, but now as a Jira admin it matters more to me whether...

34 views 0 0
View post

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