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

Dennis Chen May 10, 2022

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
Atlassian Team members are employees working across the company in a wide variety of roles.
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