Forums

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

Jira Automation to add labels to incoming issues based on keywords in the description and summary

Monika Worcester October 25, 2023

Hi there! I'm trying to create an automation that will add a label to incoming issues based on keywords in the description OR summary. Below is the automation I created, but so far, each time that I've emailed this inbox with a test message containing the word "FSA" in the summary and/or description, it errors out and does not work. Would love your help resolving, thanks! 

 

Screenshot 2023-10-25 at 12.21.43.png

2 answers

1 vote
Trudy Claspill
Community Champion
October 25, 2023

Hello @Monika Worcester 

Welcome to the Atlassian community.

Please show us the details of each step in your automation rule, and also please show us the Audit Log details for an execution of the rule.

Monika Worcester October 29, 2023

Hi @Trudy Claspill ! Do you need more specific details than what I included in my original comment? Let me know what that would look like please :) Screenshot 2023-10-29 at 15.19.40.png

Trudy Claspill
Community Champion
October 29, 2023

Yes, more information is needed.

Please click on each step in the automation rule and provide a screen image showing the details of each step.

Like Praveen V likes this
Monika Worcester October 30, 2023

Screenshot 2023-10-30 at 16.32.08.pngScreenshot 2023-10-30 at 16.32.00.pngScreenshot 2023-10-30 at 16.31.49.pngScreenshot 2023-10-30 at 16.31.35.pngScreenshot 2023-10-30 at 16.31.27.pngScreenshot 2023-10-30 at 16.31.20.png

Monika Worcester October 30, 2023

Thanks @Trudy Claspill ! See above :) 

Trudy Claspill
Community Champion
October 30, 2023

The error message you are getting in your Audit Log is referring to this step:

Screenshot 2023-10-30 at 6.30.05 PM.png

 

Jira is not able to figure out what you're trying to reference with that smart value.

So that I can redirect you to valid document/examples, can you tell me where you got the idea that smart value was valid and would meet your requirement?

Regardless, the structure of your rule is not correct for achieving your goal.

Do I understand correctly that you want to check the Summary and Description fields for each of the follow strings?

  • FSA
  • HSA
  • Benefits
  • Payroll
  • Paycheck
  • Insurance
  • Medical
  • Dental
  • Vision
  • STD

And if the Summary or Description has any one or more of those values then you want to add one value named "Payroll and Benefits" to the Labels field?

If I have understood your requirement correctly, then you will need a rule like this:

Screenshot 2023-10-30 at 6.49.38 PM.png

For the second step you need to select Add Condition > JQL and then construct the JQL to search the Summary and Description fields to see if either contain any of the key words. I provided a partial example above.

Then you need an Edit Issue action to add the value you want to the Labels field. If you don't want to wipe out any other values that have already been added to the field then you need to select the ADDREMOVE option for that field.

Screenshot 2023-10-30 at 6.52.21 PM.png

 

Then you can add (or remove) values without affecting any other values that may already be in the field.

Screenshot 2023-10-30 at 6.53.57 PM.png

Like # people like this
Monika Worcester October 31, 2023

Thank you so much, this worked perfectly! @Trudy Claspill 

Trudy Claspill
Community Champion
October 31, 2023

I'm glad I could help you.

Please consider clicking the Accept Answer button.

1 vote
Dan Breyen
Community Champion
October 25, 2023

Hi Monica, I'm no Automation expert, but I found this Community Article which sounds like what you're trying to do: Automation-to-add-labels 

It talks about using JSON and a custom field to store the info.  

Hope that helps.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events