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

Natalia Trofimov 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 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 September 23, 2023

what was the workaround @Natalia Trofimov ? 

Dustin Alcock 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?

Suggest an answer

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

Atlassian Community Events