Field behavior based on previous field value

Jay Kantaria
Contributor
December 3, 2018

I am looking to do this without any plug-in.  No script runner for now.  Any help will be much appreciated.

I have three custom fields that I want to introduce.

Field A: Tool select (Jira, BB, etc)

Field B: Jira choices

Field C: BB Choices

 

Based of the value selected in Field A,  I want to prompt users for Field B or Field C, Make the field required, make other filed gray out (not available to select)

I could not find a way to write groovy scripts.  Any help on writing server side groovy scripts will be appreciated as well.

 

Thanks,

Jay

1 answer

0 votes
Ravi Varma
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.
December 3, 2018

Hi @Jay Kantaria,

You should make your life simple by using "Cascading select" instead of this approach.

You can push "JIRA" and "BB" as parent options and populate the Child options with corresponding JIRA options and BB options. 

The configuration screens are intuitive and self explanatory

Regards,

Ravi Varma

Jay Kantaria
Contributor
December 3, 2018

Thank Ravi for reply

But... Cascading select is paid plug-In correct?  I don't see it in my list of custom filed type menu as I don't have any plug-Ins install as this is DOD(clean) environment.

Any other suggestion without doing it with third party plug-Ins?

Ravi Varma
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.
December 3, 2018
Jay Kantaria
Contributor
December 3, 2018

Hi @Ravi Varma 

Would you land me some help?  I looked through the pdf but it is mainly talking about searching and importing.  

How would I go about creating these two fields so they are cascading select type?

Ravi Varma
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.
December 3, 2018

Hi @Jay Kantaria,

It would be only one cascading field that will cater to your requirement. I am attaching the screens.

Step1: Select the cascading select list type

Step1.png

Step2: Give it a name

Step2.png

Step3:View custom fields shows the created cascading select field

Step3.png

Step4:Cascading select configuration page

Step4.png

Step5:Configuration screen for Parent and child options

Step5.png

Step6:Child options for BB

Step6.png

Step 7: Create screen child options for JIRA parent option

Step8.png

Step 8: Create screen child options for BB parent option

Step9.png

 

 

This should work for you now.

Regards,

Ravi Varma

Jay Kantaria
Contributor
December 3, 2018

@Ravi Varma

 

This works.  Thank you so much.  Any way to remove the value "NONE" from options?

Jay Kantaria
Contributor
December 3, 2018

When I select Jira, I would like the option field to clear out and required.  Currently it has default value as "NONE" 

cascading-screen.png

Ravi Varma
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.
December 3, 2018

Hi @Jay Kantaria,

 

Please look at the following links :

  1. https://community.atlassian.com/t5/Adaptavist-questions/Remove-quot-None-quot-from-cascading-select-list/qaq-p/689868
  2. https://community.atlassian.com/t5/Questions/how-do-i-remove-the-none-option-from-a-cascading-select/qaq-p/186237 

 

If you find my response useful, then can you please accept my answer.

Regards,

Ravi Varma

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events