Auto-select a value in a custom field based on other custom fields' values

Nur Fatin November 11, 2024

Hello, 

I have a team-managed project and I have five custom fields which are all dropdown. Each field will have values for the user to select. For example the custom dropdown fields and values are as of follows:

1. How long is your travel time?

  • 30 minutes
  • 1 hour
  • 2 hours

2. Do you travel by bus?

  • Yes
  • No

3. Do you travel by train?

  • Yes
  • No

4. Which Tier?

  • Tier 1
  • Tier 2
  • Tier 3

Based on the examples above, is it possible to set up an automation rule whereby the last custom field (4. Which Tier?) will auto-select the values (Tier 1, Tier, 2, Tier 3) based of the custom dropdown fields' values selected?

For example, I want 4. Which Tier field to auto-select Tier 1 as its value when the user selected these values for previous fields and so on:

1. How long is your travel time? 30 minutes

2. Do you travel by bus? Yes

3. Do you travel by train? Yes 

4. Which Tier? Tier 1 (to auto-select based on 1-3 values selected)

 

1. How long is your travel time? 1 hour

2. Do you travel by bus? Yes

3. Do you travel by train? Yes 

4. Which Tier? Tier 2 (to auto-select based on 1-3 values selected)

 

1. How long is your travel time? 2 hours

2. Do you travel by bus? Yes

3. Do you travel by train? Yes 

4. Which Tier? Tier 3 (to auto-select based on 1-3 values selected)


If it is possible, I appreciate a step-by-step guide on how to set up this automation rule.

Thank you.

2 answers

0 votes
Andrei Cuzuioc _ScriptRunner_
Contributor
November 14, 2024

Hi! This is possible with ScriptRunner's Behaviours feature. Here's a similar example explained in a demo video. This feature is not yet supported on JSM.

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 11, 2024

Hello, Good day. Looks like your requirement is specific to the feature request : https://jira.atlassian.com/browse/JSDCLOUD-3457

Nur Fatin November 11, 2024

Hello Mohanraj, thank you. May I check if there is another way to do this?

Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 12, 2024

Hello, thanks for the update. One option is to use automation like : https://community.atlassian.com/t5/Jira-Service-Management/How-to-set-a-field-value-based-on-other-custom-field-value/qaq-p/1773343

 

Or you can explore addons like Scriptrunner to achieve this requirement. Thanks

Like Nur Fatin likes this

Suggest an answer

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

Atlassian Community Events