Cascading select cistom screen

Tihomir Nikolov _Nemetschek Bulgaria_
Contributor
February 5, 2012

Hi all.

I need to hide the child level of a cascading select custom field in a screen in JIRA. It has to be available in other screens.

Has anyone tried this ?

Cheers, Tihomir.

1 answer

1 vote
Mizan
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.
February 7, 2012

Hi ,

Dont know whether it is possible for particular screens but you can hide the child node by pasting the below code in description of your cascading select customfield.

<script type="text/javascript">
var x=document.getElementById('customfield_id:1');

x.style.display='none';
</script>

Tihomir Nikolov _Nemetschek Bulgaria_
Contributor
February 7, 2012

Hi.

Thank you for the code, it will help at least for part of the game.

Actually, this is half of the idea.

I have to find out a way to hide the child page in issue creation screen and to fill them out later.

Mizan
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.
February 7, 2012

You can put an if condition for the above code . something like

<script type="text/javascript">

var projectName = AJS.$("#issue-create-project-name")

if(projectName){

   var x=document.getElementById('customfield_id:1');

   x.style.display='none';
}
</script>

i am not sure this may or may not help. but this should work only on issue creation screen


Suggest an answer

Log in or Sign up to answer