Forums

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

Automation Rule for a Short Text Field

Clement June 12, 2024

Hi,

I want to auto-assign an Issue on the Jira project based on the Value of Field, which is a short text field.
I'm trying the following rule, where I want the issue to be assigned to a user if the Field called "Help Desk Request Type" contains any of the list of Values.

I tried comma and double quotes but it's not working and logs state "

 

Issue condition
The following issues did not match the condition:

Short Text Field.png

2 answers

1 accepted

1 vote
Answer accepted
Camilo Galleguillos
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.
June 12, 2024

Hi, @Clement

That condition will not work in the way you're intending, as it will try to match the full value entered in the field, instead of parsing each comma-separated value. One option would be to create multiple issue field conditions in different else-if blocks, but it could become messy and hard to maintain.

For user assignment purposes, I would recommend relying on components instead.

 

Clement June 13, 2024

Thank you @Camilo Galleguillos I'll create individual rules then.

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.
June 13, 2024

Hi @Clement 

Rather than using the Issue Fields condition, you could try the Smart Value condition and test with a regular expressionhttps://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#--smart-values---condition

For this method, you will need to confirm you have the correct smart value for your field: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

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