Forums

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

Assistance with Automation

Mitesh Shah
Contributor
May 14, 2025

I have to create an Automation Rule to assign the request to specific user based on the Country selected from the dropdown custom field. 

I am using the logical operator of 'one of' and then selecting the Countries from the available value to build automation.

I created the Automation using IF condition. When I created a Test request and selected a specific Country, the request stays un assigned. 

screenshot of the field from request type

custom field.jpg 

screenshot of rule (partial to give an idea) 

rule 1.jpg 

Please let me know how can I make this work?

Thank you

3 answers

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2025

Hi @Mitesh Shah 

Without first seeing the rule's audit log details, I see two things to correct in your rule:

(1) The Issue Created trigger can start a rule so quickly that some data may not be ready for the rule to use.  To fix this, please add the Re-fetch Issue action immediately after the trigger.  This will slow the rule slightly and reload the data before proceeding.

(2) Your rule is using an if / else condition block but has all the conditions bundled in one area.  Instead you want separate if and else / if sections, as shown in the documentation.

 

With this changes, your rule would look like this.  Please adjust based on your actual conditions required.

  • trigger: Issue Created
  • action: Re-fetch Issue
  • condition: Issue Type equals Volunteer Payments
  • if / else block
    • if 
      • condition: Volunteer Assignment Country is one of Australia or Nepal
      • action: assign the issue
    • else if 
      • condition: Volunteer Assignment Country is one of Indonesia, ...
      • action: assign the issue
    • ...more else if sections for other cases

 

A simpler way to do this may be using a Lookup Table.  That would allow mapping the countries to the appropriate assignee.  If you want to try that, please see the examples in the documentation:

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Create-lookup-table

 

Kind regards,
Bill

0 votes
Gor Greyan
Contributor
May 15, 2025

Hi @Mitesh Shah
Could you please share Audit Log from the automation, for that Test ticket?

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 14, 2025

Hello, Good day. You had a chance to review the automation rule logs?. Check if the rule is getting triggered when the issue is created, and if there is any error. Thanks

Suggest an answer

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

Atlassian Community Events