Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to hide a checkbox from a custom filed if another field is Yes?

Hi! How to hide a checkbox from a custom filed if another field has a certain selection? Is that even possible? Do I need to write a script with groovy? We are currently using JIRA 7.11. 

customfieldA = Yes

customfieldB = 4 checkboxes ( if customfieldA = yes{ only show 3}) 

Thank you much,

Ana

1 answer

0 votes
brbojorque Community Leader Mar 21, 2019

Hi @Ana Dyer ,

You can certainly do it using ScriptRunner Behaviour function but your requirements need to slightly change.

ScriptRunner Behaviours can't change the elements inside a Custom Field say manipulate certain checkboxes but rather the Custom Field itself, either you can hide or show it.

You have to separate the choices into different Custom Fields if you want to use Behaviours.

--

An alternative solution is to have a JavaScript solution and attach it in the screens where you want to hide certain fields and elements with flexibility.

I have used JSIncluder add-on before and implement a complicated solution by either hiding and showing certain elements in the fields example will be the Multi-level select field.

Thank you, @brbojorque! I will try one of the options you mentioned.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

4,758 views 5 15
Join discussion

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