i am wrapping my head around how to set up a behaviour, that does the following:
I have a radio buttons field with the options (1) Analysis and (2) Tracking.
In a field "purpose" i want to have a certain text if Analysis is selected and no text at all if Tracking is selected.
Anybody knows how to do this and can show me directions for? Thank you!
Hi @Thomas Gschwendner ,
I would advise to create a behaviour and link it to the radio buttons field, and use this code snippet :
@BaseScript FieldBehaviours fieldBehaviours
def purposeId = 12900
def purpose = getFieldById("customfield_" + purposeId)
def checkBoxFieldId = 12800
def checkBoxField = getFieldById("customfield_" + checkBoxFieldId)
def checkBoxValue = checkBoxField.getValue()
purpose.setFormValue("Analysis is selected")
Update it with your custom fields ids.
Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...
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