Forums

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

Automation to copy the value from the text field to a select list custom field

Natalia Trofimov
Contributor
May 19, 2022

Hello,

can you please help me with JASON to create the automation rule that copies the value from the "Text" custom field to the "Select List" drop-down value custom field?

i.e.

When: value changes for "Text"

Then: Edit issue field "Select List" - update or add a new value

where

Text field = "customfield_1"

"Select List" ="customfield_2"

 

Thank you

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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 19, 2022

Hi @Natalia Trofimov 

To confirm your scenario, are you trying to take that text value to:

  1. set to an existing value in a select list field, based on the text, or 
  2. potentially add a new value to a select list field

Neither one of these can be done with built-in automation rule features.  Setting the select list field requires the id value, not the text name from the drop-down list.

Instead you would need to call the REST API from a web request action to do this, getting all possible values, and then matching to find the id to set the field.

If you also wanted the ability to add new values to a select list (scenario #2) that would be a second call to a different REST API function, and might require admin permissions.

Kind regards,
Bill

Natalia Trofimov
Contributor
May 23, 2022

Thank you Bill! it sounds complicated:)!

We found a work around to address our issue but thank you very much for your fast response and possible solution.

Thank you,

Natalia

Like Bill Sheboy likes this
Sindhu
Contributor
September 23, 2023

what was the workaround @Natalia Trofimov ? 

Dustin Alcock
Contributor
February 26, 2024

Gotta love when people find workarounds and don't share... :(

Jan Verbeke March 20, 2024

@Natalia Trofimov Can you share your workaround please?

Neeta Dubey
Contributor
August 5, 2024

Whats the workaround, I have similar situation, but viceversa, from Select list, I need to copy to text custom field.

Like siviani_madrigal likes this
siviani_madrigal August 19, 2024

Hey I need to do the same action, will appreciate if you can share how to do it

 

Neeta Dubey
Contributor
August 19, 2024

I used set field in automation rule:

Region is the short text field.

GCSSD Region is the dropdown field.

gcssd.png

Suggest an answer

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

Atlassian Community Events