Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 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.

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 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
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 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 Bill Sheboy likes this

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

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 31, 2023

I'm glad I could help you.

Please consider clicking the Accept Answer button.

1 vote
Dan Breyen
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.
Oct 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