Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the custom field values to be in sync?

Pratibha Tambakad March 8, 2022

We have 3 single select custom fields in Jira, whenever we add a values to one custom field we want the same values to be populated in other two single select custom fields.

Is there any way to achieve this?

 

2 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
March 8, 2022

With some scripting or automation, you can do this, but I want to question why (I don't think I have actually understood what you are looking for).  Why do you want to put the same value on an issue in three different fields?  Surely you only need one field?

Balaji Krishnan
Contributor
March 8, 2022

Just some context on request, we are looking to track assigned and dependent teams for a higher scope issue type like epic. We know that we can use issue type relates/blocked but want this additional details too.

Like Ewan Milne _work_ likes this
Nic Brough -Adaptavist-
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.
March 8, 2022

I'm sorry, but that does not help explain what you are trying to do.

To me, it sounds like you are creating three custom fields, let's call them cf-1, cf-2 and cf-3, all with the same possible options (let's say, the options are alpha, beta, gamma, and delta)

What you said you want to do is when someone fills in a new issue (ABC-123) with cf-1 with Alpha, then cf-2 and cf-3 become Alpha as well.

I don't understand why you want duplicate information on the same issue.

Like Charlie Misonne likes this
Pratibha Tambakad March 10, 2022

Hey Nic,

Appreciate your response,

Let me explain the use case. We have 3 different fields Workgroup, Requesting on Team, Depends on Team. We are adding values to the fields "Workgroup" and these values are specific to the project, we have project context set to each project. When we add values to this field ,these values should populate on the Other two fields(Requesting on Team and Depends on Team),These two fields are available on the create screen of the issue. We want to see the values when we are creating the issues and user will be able to select from the dropdown list. We are checking if we have any way achieve it.

Thanks

Pratibha

Nic Brough -Adaptavist-
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.
March 10, 2022

I still don't understand why you want to set all three fields to be the same thing on an issue.  What's the point of having three fields with exactly the same data?

wajih zouaoui
Contributor
March 28, 2022

Hi @Nic Brough -Adaptavist-

 

please , i need to know how to share the same values with 2 different custom fields Select list single option.

Like we have 2 Cf : Cf-1 and Cf-2 

When i add a value into Cf-1 using configuration then the list of options in Cf-2 must be updated automatically with the new value added in to Cf-1.

 

Like we need to share always the same options with those 2 custom fields without duplicating it manually for both.

 

Thanks in advance.

 

Best Regards,

Wajih

Tom Hudgins
Contributor
February 13, 2024

I have this requirement - sync options between two fields.

We have need for a Primary Location custom field and a Secondary Location field. We have a list of locations to choose from. Both fields need the same list. 

Pretty much agree/understand that there needs to be some sort of scripted solutions. Rather than arguing about the reason why someone would need this pretty simple requirement, how about some ideas on how the automation/scripting might best be implemented?

In our case, the select options don't change very often so a nightly job to sync the options seems reasonable. I don't know if there is some sort of options changed event that could trigger a sync - or how to catch the event if there is one. 

Also seems like there needs to be a designated "master" field that the other fields sync to but not sure how to prevent users from changing the cloned fields. 

0 votes
Charlie Misonne
Community Champion
March 8, 2022

Hi @Pratibha Tambakad 

Is there any reason you are not using that same custom field everywhere instead of duplicating the configuration?

To answer your question: there is no out of the box way to achieve this. I think you will have to use the Jira REST API and write your own script to do this. It should be feasible with ScriptRunner as well.

Another idea: you could use an Insight field and populate the fields from there.

Suggest an answer

Log in or Sign up to answer