Automation rule to assign Assignee based on field Category

Polina Pylara
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 16, 2024

Hi

I am looking to write automation rules to automate the correct Assignee based on the field Category. 

Example Category would be A or B and the rule should be 

If Category = A Assign to George

If Category = B Assign to Helen

 

When I get to the "Issues fields Condition" and choose Category the drop down does not show the Categories I have set up in my board

Below are the Categories set on the Jira Board

 

Screenshot 2024-05-16 at 21.00.19.png

Below is what comes up in the automation rules, which is not what I use as Category in my Jira tickets and I do not see an option to add text manually

 

Screenshot 2024-05-16 at 21.01.13.png

 

Screenshots are from Project Jira Board

 

1 answer

0 votes
Michel Neeser
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 16, 2024

Hi @Polina Pylara and welcome!

As far as I know, the "Category" field available on the list view in business projects can't be used in an automation rule (yet). The values you see in your second screenshot are probably from a different "Category" custom field, which may have been added by a Jira administrator.

Hope this helps!

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 16, 2024

Hi @Polina Pylara -- Welcome to the Atlassian Community!

Yes, and...to Michel's answer:

For Jira Work Management projects, the Category field is not listed in automation dropdown fields yet: https://jira.atlassian.com/browse/AUTO-803

As a workaround, you may use a smart value condition and the custom field id for it.  For example, with a made-up custom field id:

  • smart value condition:
    • first value: {{issue.customfield_12345.value}}
    • condition: equals
    • second value: PARTNER

To find the correct custom field id in your Jira project, please use this how-to article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Please note that comparison is case-sensitive, so confirm your values match your defined values in case.

 

As another idea for your scenario, you could use a Lookup Table to map the Category values to the assignee account id values, eliminating the need for a long list of if / else conditions.  That would make the assignment look like this, assuming the table was named varCategoryToAssignee:

{{varCategoryToAssignee.get(issue.customfield_12345.value)}}

 

Kind regards,
Bill

Like Michel Neeser likes this
Polina Pylara
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 17, 2024

Hi,

Thank you, in regards to the table name, since it does not accepts non alphabetic characters how would that work?

Key I have inputted the value Category (11018) would have "INTERNATIONAL"

Value is the AssigneeID

Screenshot 2024-05-17 at 18.48.56.png

Michel Neeser
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 17, 2024

@Polina Pylara The "Lookup table variable name" is just the name of the variable you're using later when looking up the table. So, your action should look like this:

SCR-20240517-sjdj.png

And then you can use the expression @Bill Sheboy mentioned to set the assignee:

SCR-20240517-skge.png

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events