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,298,994
Community Members
 
Community Events
165
Community Groups

Auto fill in assignee with the value of one of two fields

Hi there,

 

I am writing automation recently. We have two custom fields, let's say Worker A and Worker B. And normally only one of the fields will be filled.

Now I want to use Automation to auto-assign tasks to either Worker A or Worker B (If Worker A is empty, then assign tasks to Worker B, vice versa). How should I write the smart value in Assignee in Automation? Does {{Worker A}}or{{Worker B}} work?

1 answer

0 votes
Sherry Goyal Atlassian Team May 11, 2022

Hi,

The rule can be like this:

Trigger: Issue created

If 
  User Condition choose "Worker A" field from dropdown(if its of user type)
  Issue filed condition: Assignee from the dropdown "is empty"
  then: Assign issue to {{issue.customfield_1234}}  // customfield_1234 being id of Worker A field

else
  User Condition choose "Worker B" field from dropdown(if its of user type)
  Issue filed condition: Assignee from the dropdown "is empty"
  then: Assign issue to {{issue.customfield_4567}}

 

If your "Worker A" and "Worked B"  fields are not of user type you can use "Advance compare condition" using the above smart value instead of "User condition".

 

Thanks
Sherry

Suggest an answer

Log in or Sign up to answer
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