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,295,101
Community Members
 
Community Events
165
Community Groups

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

Edited

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

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

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

Suggest an answer

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you