Jira Service Desk automation to find duplicate Service requests based on the summary field

Jonathan Lewis June 11, 2024

Hi Atlassian Community,

 

Apologies I'm still somewhat a beginner on the automation side of things for Jira!

I'm looking to add an automation rule to our Jira Service Desk in order for it to pick up any duplicate tickets based on the summary field contents and then to transition the ticket into a resolved/cancelled status.

 

Example from my screenshot:

I have 3 tickets created which are under the same "request type" and contain the same summary (in this case summary = "123456789") with the status "waiting for support". I want the initial ticket (PSP-70) to be the original and any others the come through after with the same summary field (not pre-defined if possible) to be moved to resolved/cancelled status.

 

JSD test 1.png


Below is what I have currently for the Automation rule.

It looks up the issues fine, but I think where I'm stuck at is the compare part of the rule...

 

JSD test 3.png


 

I'm wanting the flow to be like below:

 

-Lookup issue- If Jira Ticket:

  • = active
  • = service request
  • = waiting for support
  • resolution date is empty

-Compare- Then check other tickets that are with the above same criteria:

  • Active
  • Not set to resolved/no resolution yet
  • AND whether the "summary field" is equal to the original ticket summary field (summary field not to be pre-determined in the automation rule)

-Actions- If those match then:

  • Transition the duplicate(s) ticket(s) to "resolved/cancel" status
  • AND issue field to "resolution" = Duplicate
  • AND add comment to issue "Duplicate request"

 

If anyone has any advice on this it would be greatly appreciated :) 

 

Thanks Jono

1 answer

1 accepted

1 vote
Answer accepted
Duc Thang TRAN
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 11, 2024

Hello @Jonathan Lewis 

Can you try this one in lookup issue jql part ? 

project = "PSP" and issuetype = "Service Request" and status = "Waitting for Support" and resolutiondate is empty and summary ~"\"{{triggerIssue.summary}}\""

Capture d’écran 2024-06-12 084730.png

Normaly, that will cancelled all new ticket with exact same summary 

Jonathan Lewis June 12, 2024

Hi @Duc Thang TRAN 

Thanks for your response, this one worked perfectly, appreciate your response on this :)

 

Screenshot to show confirmation on the Audit log:

JSD 5.png

Duc Thang TRAN
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

@Jonathan Lewis  Glad that helped you :) , in this case you can maked as accepted response

Like Jonathan Lewis likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events