How do I create an automation that adds an internal comment to all tickets that are more than 30 days from ticket creation?
Hi @Sandra Middleton
What have you tried thus far to solve this need?
If you have a rule that is not working as expected, please post the following for context so the community can offer suggestions:
If you have not started a rule, I encourage you to try. Successfully using automation rules requires learning and experimentation.
To get you started, your rule could use a JQL query to identify the work items to update, use that JQL with the Scheduled Trigger, and then add the Comment on Work Item action with the desired Comment Visibility.
To learn more, please see these references:
Kind regards,Bill
Hey @Sandra Middleton
I would set this up with a schedule trigger to make it super easy. Run it every day, at the beginning of the day.
I can help design something for you, just a few questions.
Is it for literally any ticket created 30 days or older? Or does status factor in to this? So ignore if say the ticket is resolved.
Do you need a different comment based on the status of the ticket?
Thanks
Aaron.
Hello Aaron!
This would only be for any open/active tickets and not for those already resolved/closed.
If the ticket is older than 30 days from the ticket creation date, I would like an automation that adds an internal note that reads "This ticket is older than 30 days from ticket creation. Please review for possible closure."
Thanks for your help!
Sandra M.
That's great.
So start with a schedule trigger and set it up in this way:
Occurrence: Run rule every: 1 Days
Pick a time that suits you.
Check the box to run a JQL query
And enter the following JQL: created <= startOfDay(-30) and status category not in (Done)
This will capture all tickets they are 30 days or older and not in a "green" status.
Then it is your decision to tick the box to only include tickets they have changed since the rule ran last, but considering you are making a change, it seems pointless.
Then add an action to leave a comment.
Write your desired comment. And pick internal comment for visibility.
Now, on the comment section you can select the box to prevent duplicate comments but this means the rule will only run once per ticket and if your users miss the comment it would never leave it again. So it's up to you if you want to leave the comment each day.
You could play around with the schedule so it only checks every Monday for you.
Have fun with it, and let me know if you need any more help.
Thanks so much Aaron! I will give this a try. Cheers!
It looks like you're new here. Sign in or register to get started.