The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events