Forums

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

Building Automation for sitting service requests

Zachary Williams
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 19, 2023

I'm currently working on building automation for any service requests sitting in the status named "Waiting for customer". The idea is when the ticket has been sitting for one day and three days, it will automatically respond with a comment to the ticket. On the fourth day, it will automatically respond one last time and transition the ticket to the "Resolved" state. I am also in need of it (If possible) to look and see if any of the days sitting in the "Waiting for customer" status are Saturday or Sunday. If either of those days are included in the status wait-time, ignore those days for the count. 

This is what I have so far:

When: Issue transitioned
TO
Waiting for customer

Branch Rule / related issue
For: Current issue

     If: Issue matches JQL
     status = "Waiting for customer" AND (status changed BEFORE -0d AND status changed AFTER -2d)

     Then: Add comment to issue
     (Comment goes here)

Branch Rule / related issue
For: Current issue

     If: Issue matches JQL
     status = "Waiting for customer" AND (status changed BEFORE -2d AND status changed AFTER -4d)

     Then: Add comment to issue
     (Comment goes here)

Branch Rule / related issue
For: Current issue

     If: Issue matches JQL
     status = "Waiting for customer" AND status changed BEFORE -3d AND status changed AFTER -5d

     Then: Add comment to issue
     (Comment goes here)

     And: Transition the issue to
     Resolved

 

I'm struggling to figure out a way to make the weekend thing work. Any assistance or suggestions would be greatly appreciated!

1 answer

0 votes
Zachary Williams
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 19, 2023

I'm unsure if it works, but this is what I've come up with.

When: Issue transitioned
TO
Waiting for customer

Branch Rule / related issue
For: Current issue

     If: Compare two values
     Checks if:
    {{now.minusBusinessDays(1)}}

     Then: Add comment to issue
     (Comment goes here)

Branch Rule / related issue
For: Current issue

      If: Compare two values
     Checks if:
    {{now.minusBusinessDays(3)}}

     Then: Add comment to issue
     (Comment goes here)

Branch Rule / related issue
For: Current issue

     If: Compare two values
     Checks if:
    {{now.minusBusinessDays(4)}}

     Then: Add comment to issue
     (Comment goes here)

     And: Transition the issue to
     Resolved

Suggest an answer

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

Atlassian Community Events