On this page



Use case

Add a comment to the issues in a certain status whose status has not been updated in 7 days.



Configuration


Create a new rule and name it appropriately.


Providing a description will help you to identify what the rule does but this step is optional.




Scheduled trigger

Add a TriggerScheduled and choose who you want to execute this rule in Run as*


Schedule

Choose Daily


Interval

Set to Once per day at 1 00 am




JQL selector

Add Selector JQL selector


JQL Query

Use the following expression:

project = CASE and status = "Wating for Customer"

This JQL query will retrieve the issues of the CASE project and in Waiting for Customer status.

Do not forget to change the key of the project and the status in your own automation rule.


Boolean condition


Add Condition → Boolean condition



Expression

Use the following expression

datePart(lastFieldChangeTime(%{selector.issue.status}), LOCAL) = addDays(datePart({system.currentDateTime}, LOCAL), -7 , LOCAL)



Add comment action

Next to JQL Selector click on Add → Action → Add Comment





Comment's text

Hello %{selector.issue.reporter},

We have not received an answer in 7 days. The issue will close itself automatically tomorrow.

Best regards,
%{system.currentUser.displayName}





Enable the rule by clicking on the Enable button → 



Related use cases




JWT featurelink each symbol to parent page of the function category (e.g. conditions/ validators/automation action...)
Workflow function

Link to the function being used

Parser functionsLinks to all used parser expressions. Enter links separated by a blank space
Labelused to mark a use case as staff pick





Status
Tech review

Style guide