Forums

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

Automation Ruleset Question

Michael Allen June 30, 2023

I have a 3rd party application that opens tickets for system events. The issue I am having is there is an event that is auto generating tickets to Jira by the dozens. I can't change the frequency on the app side, so I want to create an automation ruleset that looks for tickets that are created with the same description in the last 24 hours and then close any tickets after that first one is created.

I've tried doing 

description ~ "{{issue.description}}" but I get an error stating "The text query '{{issue.description}}' for field 'description' is not valid: probably your range query is incorrect."

Any guidance would be appreciated.

3 answers

0 votes
Michael Allen June 30, 2023

Where is that at? I see this options when creating a ruleset:
Transition on comment
re-open on customer comment
be aware of urgent issues
keep top on SLAs
set customer expectations
Update when a linked issue changes
triage requests sent by email
custom rule

0 votes
Heryclles Henrique do Nascimento June 30, 2023

Hello, if I understand correctly you are trying to use a smart value in a JQL, unfortunately this is not possible, but if the smart value is the value you are looking for, you can use the following query: 

description ~ "issue.description"

Michael Allen July 3, 2023

That doesn't quite work.  If I change the description of the Alert generating a ticket to issue.description it works. So the issue matches condition is checking the description of the new issue created, it is not comparing the new issue to exiting tickets.

0 votes
Tim Perrault
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 30, 2023

Hi @Michael Allen 

 

You could try branching the rule and use the similar issue description option. That might get you where you are trying to go.

Screenshot 2023-06-30 133814.png

Suggest an answer

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

Atlassian Community Events