ION Actions examples for Quality
Build custom quality workflows based on the type of issue
Open Redlines Prevent Moving Issue Into In Review
{
"create_rule": {
"title": "Open Redlines Prevent Moving Issue into In Review",
"target": "ISSUE",
"enabled": true,
"eventType": "UPDATE",
"ruleType": "VALIDATION",
"code": "if context.get('issue', {}).get('status') in ['IN_REVIEW'] and context.get('issue', {}).get('redlines') is not None and not all(redline.get('step', {}).get('status', {}) in ['COMPLETE', 'CANCELED'] for redline in context.get('issue', {}).get('redlines')): raise ValidationError()",
"context": "{ issue(id: $id) { title status redlines { id step { status } } } }",
"errorState": "BLOCK"
}
}No Permission To Reopen A Closed Issue
{
"create_rule": {
"title": "No Permissions to Control Reopening Issues (Need Quality Engineer, Quality Inspector, Reliability Engineer)",
"target": "ISSUE",
"enabled": true,
"eventType": "UPDATE",
"ruleType": "VALIDATION",
"code": "if context.get('issue', {}).get('status', {}) in ['IN_REVIEW'] and context.get('changes', {}).get('issues', {}).get('status', {}).get('old', '') in ['resolved'] and not set(context.get('currentUser', {}).get('roles', {})).intersection(set(['Quality Engineer', 'Quality Inspector', 'Reliability Engineer', 'admin'])): raise ValidationError()",
"context": "{ issue(id: $id) { title status } }",
"errorState": "BLOCK"
}
}Issues Cannot be Closed with an Interim Dispositions
Can't install a part to aBOM when text custom attribute is not null
Can't kit a part while on CAPA
Last updated
Was this helpful?