Jobs and Tasks that include 'If' conditions show task failures when the condition evaluates as false
search cancel

Jobs and Tasks that include 'If' conditions show task failures when the condition evaluates as false

book

Article ID: 171624

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

You have created a task or job that contains multiple steps using If/Else conditions for flow control. You notice your job returns errors on running, but when drilling into the details you see that in fact the 'error' is that the 'if' test has evaluated as false. See the simplified example in the screenshot below: 

Environment

ITMS 8.x, Any job or task with an if/else condition evaluation

Cause

This is the current design of the product. 

Resolution

This is expected behavior when using any job or task with an if/else condition evaluation. There are no current plans to modify this behavior. Any condition not matching the expected return will show as a failed task by design.