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"
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?
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 ...
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