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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

Present / Hide fields based on value of another field using "Behaviours"

Hi Community,

I am pulling my har out with this one... undoubtedly due to my lack of coding knowledge!

I have a field "RAID Type". I want different fields to be presented and hidden based on what is selected.

For example if "Issue" is selected present these fields and hide these ones.

The trouble begins when i create multiple behaviours and serverside scripts.

For example i create another behaviour to say when "Risk" is selected the present these fields and hide these ones.

It seems to get confused and the first behaviour set seems to malfunction.

Should this behaviour all be in one script and if so how do i do it?

Below is an example of the code for a single behaviour that works fine. Its just when i start adding multiple behaviours that the malfunctions start.

Please please could anyone help?

Thanks in advance.



def EscalationLevelField = getFieldByName("Escalation Level")

def ResponsePlanField = getFieldByName("Response Plan")

def ImpactScoreField = getFieldByName("Impact Score")

def ResolutionDateField = getFieldByName("Resolution Date")

def MitigationPlanField = getFieldByName("Mitigation Plan")

def TargetResolutionDateField = getFieldByName("Target Resolution Date")

def DecisionRequiredByField = getFieldByName("Decision Required By")

def ProbabilityField = getFieldByName("Probability")

def RAIDtypeField = getFieldById(getFieldChanged())


def selectedOption = RAIDtypeField.getValue() as String

def isOtherSelected = selectedOption == "Issue"


TargetResolutionDateField.setHidden(! isOtherSelected)


ResponsePlanField.setHidden(! isOtherSelected)


EscalationLevelField.setHidden(! isOtherSelected)


ResolutionDateField.setHidden(! isOtherSelected)


ImpactScoreField.setHidden(! isOtherSelected)


MitigationPlanField.setHidden(! isOtherSelected)


DecisionRequiredByField.setHidden(! isOtherSelected)


ProbabilityField.setHidden(! isOtherSelected)



1 answer

Hello @Darren Fairweather 

Welcome to the community.

When you create your behaviors is each set of rules specific to an issue type? Are you creating a mapping for the behaviour to apply it to specific project(s) and issuetype(s)?

How does the "malfunction" manifest? What steps are you executing before the malfunction happens?

Suggest an answer

Log in or Sign up to answer
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 ...

7,104 views 8 28
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