{
"name": "Auto-close stale 'Completed' Incidents",
"state": "ENABLED",
"canOtherRuleTriggerThis": false,
"shareTeam": false,
"tags": [],
"ruleScope": {
"resources": [
"ari:cloud:jira::site/SITE-ID"
]
},
"trigger": {
"component": "TRIGGER",
"type": "jira.jql.scheduled",
"value": {
"cron": "0 0 9 ? * MON-FRI *",
"jql": "status = Completed AND updated <= -5d AND issuetype = 'Work Type = Incident'"
}
},
"components": [
{
"component": "ACTION",
"type": "jira.issue.transition",
"value": {
"transition": {
"name": "Completed - Closed"
}
}
},
{
"component": "ACTION",
"type": "jira.comment.add",
"value": {
"comment": "This incident has been automatically closed after 5 days in the 'Completed' status due to inactivity."
}
}
]
}
{
"name": "Nudge stale 'Pending' Incidents",
"state": "ENABLED",
"canOtherRuleTriggerThis": false,
"shareTeam": false,
"tags": [],
"ruleScope": {
"resources": [
"ari:cloud:jira::site/SITE-ID"
]
},
"trigger": {
"component": "TRIGGER",
"type": "jira.jql.scheduled",
"value": {
"cron": "0 0 9 ? * MON-FRI *",
"jql": "status = Pending AND updated <= -3d AND issuetype = 'Work Type = Incident'"
}
},
"components": [
{
"component": "ACTION",
"type": "jira.comment.add",
"value": {
"comment": "This incident is currently in 'Pending' and awaiting a response. Please provide an update. Note: This ticket will be automatically closed if there is no update within the next 4 days."
}
}
]
}
{
"name": "Auto-close 'Pending' Incidents after 7 days",
"state": "ENABLED",
"canOtherRuleTriggerThis": false,
"shareTeam": false,
"tags": [],
"ruleScope": {
"resources": [
"ari:cloud:jira::site/SITE-ID"
]
},
"trigger": {
"component": "TRIGGER",
"type": "jira.jql.scheduled",
"value": {
"cron": "0 0 9 ? * MON-FRI *",
"jql": "status = Pending AND updated <= -7d AND issuetype = 'Work Type = Incident'"
}
},
"components": [
{
"component": "ACTION",
"type": "jira.issue.field.edit",
"value": {
"fields": {
"Close Code": {
"value": "No feedback from user"
}
}
}
},
{
"component": "ACTION",
"type": "jira.issue.transition",
"value": {
"transition": {
"name": "Close"
}
}
}
]
}
{
"name": "Flag Rework when Incident is Reopened",
"state": "ENABLED",
"canOtherRuleTriggerThis": false,
"shareTeam": false,
"tags": [],
"ruleScope": {
"resources": [
"ari:cloud:jira::site/SITE-ID"
]
},
"trigger": {
"component": "TRIGGER",
"type": "jira.issue.transitioned",
"value": {
"from": [
{
"type": "STATUS",
"value": "Completed"
}
],
"to": [
{
"type": "STATUS",
"value": "Work in Progress"
}
]
}
},
"components": [
{
"component": "CONDITION",
"type": "jira.issue.condition.jql",
"value": {
"queryString": "issuetype = 'Work Type = Incident'"
}
},
{
"component": "ACTION",
"type": "jira.comment.add",
"value": {
"comment": "This incident has been reopened from 'Completed'. Please add a comment explaining the reason for this rework."
}
}
]
}
{
"name": "Auto-assign unassigned High/Critical Priority Incidents",
"state": "ENABLED",
"canOtherRuleTriggerThis": false,
"shareTeam": false,
"tags": [],
"ruleScope": {
"resources": [
"ari:cloud:jira::site/SITE-ID"
]
},
"trigger": {
"component": "TRIGGER",
"type": "jira.issue.created",
"value": {}
},
"components": [
{
"component": "CONDITION",
"type": "jira.issue.condition.jql",
"value": {
"queryString": "issuetype = 'Work Type = Incident' AND Priority in ('2 - High', '1 - Critical') AND assignee is EMPTY"
}
},
{
"component": "ACTION",
"type": "jira.issue.field.edit",
"value": {
"fields": {
"assignee": {
"type": "AUTO"
}
}
}
}
]
}
{
"name": "Route Password Reset Incidents to correct group",
"state": "ENABLED",
"canOtherRuleTriggerThis": false,
"shareTeam": false,
"tags": [],
"ruleScope": {
"resources": [
"ari:cloud:jira::site/SITE-ID"
]
},
"trigger": {
"component": "TRIGGER",
"type": "jira.issue.created",
"value": {}
},
"components": [
{
"component": "CONDITION",
"type": "jira.issue.condition.jql",
"value": {
"queryString": "issuetype = 'Work Type = Incident' AND Subcategory in ('Password Reset', 'Account Unlock') AND 'Assignment Group' is EMPTY"
}
},
{
"component": "ACTION",
"type": "jira.issue.field.edit",
"value": {
"fields": {
"Assignment Group": {
"value": "Computer/Accessories"
}
}
}
}
]
}