The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How can i make a field is visible or not determined by another field's value?

huang isabel
January 4, 2012

In the issue creation screen, can i make a field is visible or not determined by another field's value?

By specify screen scheme, permission scheme, workflow transition conditions or so on.

4 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Azwandi Mohd Aris
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 Champions.
January 4, 2012
0 votes
t.dot
November 7, 2012

Hello Huang,

It's been a while since the last reponse of this issue but I'm hoping you'd be able to share your solution as I too am trying to only make another field visible based on a value from a prior field. I'm using JIRA OnDemand.

0 votes
Manuel Campomanes
Contributor
March 6, 2012

I need to hide or not a "date and hour" field, I try the JS function, but it only hide the text area and not the label and the datepicker.

A schema to explain what I have (left side) and what I need (right side) :

JS code :

<script type="text/javascript">
  source = document.getElementById('customfield_10600');
  if (source) {
      target = document.getElementById('customfield_10601');
      if (source.value == 'Oui') target.style.display='none';
 
      source.onchange=function() {
          if (this.value == 'Oui') {             
                     target.style.display = '';      
                  } else {
                 target.style.display='none';
          }
      }
  }
 </script>

0 votes
huang isabel
January 9, 2012

Azwandi Mohd Aris [Atlassian] :I added the js in the customer field's description,but it doesn't work. I don't know what can i do.

huang isabel
March 13, 2012

I have solved this problem, thank you very much!

Logan G Hawkes
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 Champions.
July 13, 2012

Could you detail your solution? I've had a helluva time doing stuff using javascript in field description.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events