Information Technology Reference
In-Depth Information
How it works…
An automation rule consists of two components, the trigger and the action. The trigger will
cause the task to happen. The two built-in triggers are as follows:
JQL filter : This trigger runs periodically as per a CRON schedule. All issues that
are part of the JQL query will be subjected to the action, provided it does not fall
outside of the limit.
Issue event : This trigger runs when the corresponding issue event occurs. Issues
that fire the event will be subjected to the action, unless restricted by a JQL query
and/or an event author.
An action is what will happen when a trigger is fired. A trigger can fire more than one ac-
tions. The five built-in actions are as follows:
Set assignee to last commented : This action assigns the issue to the user that last
commented on it
Edit labels : This action adds and/or removes labels from the issue
Comment issue : This action adds a comment to the issue
Transition issue : This action transitions the issue along the workflow
Edit issue : This action updates the field values of the issue
With our automation task, we have set up a trigger to run every day at midnight with the 0
0 0 * * ? CRON expression. We then used a JQL query to select only the issues in the
Help Desk project that have not been updated in the last seven days at the time when the
task was run.
We then added two actions for the trigger, one to transition all the issues returned from the
JQL query to Close and another to add a comment, which will also send out a notification.
Search WWH ::




Custom Search