I created a Custom Field with 'Yes' and 'No'. I want additional information if they choose 'Yes', but I would prefer if that field didn't always show, so I would like to configure it that a new field appears if 'Yes' is chosen - otherwise it is hidden.
Well, it's not very complex language and there are a lot of examples on the web.
Also, there is excelent plugin for Firefox - Firebug. With it's help you can run and test any clause or expressions right on web page!
So, I suggest to read about it a little bit and try it out.
I finally found the ID!!!
This is what I want:
If Related to Another Issue field (which is defaulting to None), is chosen, when hide the Issue Number field.
This is what I have:
radiobutton = document.getElementById('customfield_10208');
target = document.getElementById('customfield_10209');
// Hide the target field by default
target.style.display = 'none';
target.style.display = '';
Question 1: do I place this in the Description for the Source or Target?
Question 2: what is wrong? Why doesn't this work?
>> Question 1: do I place this in the Description for the Source or Target?
Question 2 is more tricky. I would suggest to use Firebug with it's console. You can execute scripts in browser and see result. Also, there is handy function console.log("some text")
Also, instead of using document.getElementById('#some_id') you can you jquery function AJS.$('#some_id') (AJS is Atlassian namespace, where jquery is declared).
Check jquery docs - it's more easier to write scripts with help of this great library!
Although on further inspection, I see you're using On Demand. I have no idea if this works with On Demand.
I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs