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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,325
Community Members
 
Community Events
184
Community Groups

Based on one custom field value can we change the type of another custom field.

EX: If Change Type is single select list

Values: 1)Onboarding

2)Migration

If Change Type is Migration- Another custom field Customer Name should be a single select list that already has values to choose from.

If the Change Type is Onboarding- Customer Name custom field should be text box. Since onboarding new customers.

Please help me to achieve this. 

Thanks,

2 answers

1 vote
Graham Twine
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 20, 2023 • edited

Field types cannot be changed in Jira at all.

Only the name can be amended or values managed.

 

Do you have scriptrunner?

If so, the following would work.

 

By default the fields are both hidden.

When the value in the controlling field changes it will show / hide / toggle the other two.

NOTE: Do not give the other two the same name, duplicate names cause all sorts of trouble / confusion.

 

For a good user experience, keep the three fields together.

 

Solution 1

Change Type (Controls which of the two fields below will be displayed)

Existing Customer (Select List)

New Customer (Text Field)

Solution 2

A second solution would be to make the Existing Customer filed the controller.

Add a value "Other" to the select list

If the name I need is not in the predefined set of choices then I choose  "Other"

When "Other" is chosen a mandatory text field appears where I can capture the value

Hi @Graham Twine ,

I followed solution 1. But for future  New Customer (Text Field) value should be on the 

Existing Customer (Select List) if the customer create a ticket he should be able to choose that. Could you please help me how to achieve that. 

Thanks,
Rahul

Graham Twine
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2023 • edited

Hello @Rahul M

 

You would need to add the new Option from the text field to the list of available options.

 

See the OptionsManager in the java doc for assistance.

1. Create a new Option from the text field

2. Add a new Option list of options to the list of Options in the correct context

 

I do not think this is a good idea though.

Consider verifying things like the case, spaces etc You will end up with.

 

Option

option

my-option

My Option

1 vote
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 19, 2023

No, a field can be only one type and cannot be changed. You have to use two separate fields.

Are you already using two separate fields, and trying to set one or the other as required based on the value selected in the Change Type field?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events