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

Setting custom field value based on another field value

Zac July 27, 2021

Hi There,

I'm trying to use Automation to set a custom field value based on the organization string value.

I.E

If organization = Banana

AND

Select List Custom Field "Fruit" has "Banana" as a potential value

SET "Fruit" to "Banana"

ELSE

Do nothing


I can do this one by one but there are too many fruits :) It would be very easy if I could have the logic to check potential match values in the custom field and apply the corresponding matching value to the custom field.

1 answer

1 accepted

1 vote
Answer accepted
Eric
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 29, 2021

Hi @Zac 

 

I'm assuming organization is a JSM custom field of type organizations. If so, you should be able use a combination of:

  1. Issue field condition using "contains any of" condition to list all the organizations that you are interested in
  2. Edit issue action to set your "Fruit" field

I don't believe you can (or need to) do the following check:
Select List Custom Field "Fruit" has "Banana" as a potential value

The field "Fruit" will not be set if the organization is not a valid option.

Hope that helps.

 

Eric

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events