Field Automate Below If I chose a option (dropdown )

saiteja ameda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2024

Hey Atlassian Community , 

I want to automate a field by default value automatically when i select a field from dropdown(Suppose i have field named "x" and i have dropdown options to that field as "y , z " .. Now if i select x the feature i need is the value associated with y (assume "a") should by default come below it )

1 answer

0 votes
Rik de Valk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 6, 2024

Hi @saiteja ameda , 

You can use an Automation Rule to automatically set field B based on the value of field A.

Just be aware that an Automation Rule can only trigger on events like 'Issue created' or 'Field changed', but it will not be able to manipulate the field while the user is still in the Create or Edit screen. 
If you want to dynamically manipulate form fields on the screen while the user is still filling in the screen, you need to use Behaviours from ScriptRunner. 

Assuming an Automation Rule meets your requirements, you can create an automation Rule with a setup such as: 

  • Trigger: Field changed, for field A
  • IF/ELSE block: Field A = x1
    • Action: Edit issue - set field B to x2
  • IF/ELSE block: Field A = y1
    • Action: Edit issue - set field B to y2

If you have many options for field A, you would need to create many IF/ELSE blocks. In that case, it is better to create a Lookup Table, with a mapping of field A values to field B values. 

Say you name your lookup table 'fruit' and the value for field A is 'banana' and you have mapped 'banana' to 'yellow' in your lookup table. 

Then you can Edit the issue and set field B to the smart value

{{fruit.get("banana")}}

Which will set the value of field B to 'yellow'. 

Hope that helps. 

Have a nice day! Rik 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events