active is true

ulvi
Giga Expert

Hi to All,

I would like to understand better, when we are using Active is true condition?

If I'm looking for open incidents on this month do I need to give this condition? and additional do I need to choose also incident state is one of new(assigned,...) condition?

Regards,

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Ulvi,



The active flag is a way to specify which task states are "active" and which are not without having to worry about specific states on each report, list, module, etc. You define which states are active using the close_state dictionary attribute.



By default, close states are 3, 4, and 7. Everything else, by default is active=true. When one of the 3,4, 7 states is set, the system automatically changes active to false. This allows you to "group" your open and closed states together easier.



If you use active=true, you do not need to include "State is one of..." that's the whole point of the active field.



Dictionary Attributes - ServiceNow Wiki



I hope that helps.


View solution in original post

6 REPLIES 6

Chuck Tomasi
Tera Patron

Hi Ulvi,



The active flag is a way to specify which task states are "active" and which are not without having to worry about specific states on each report, list, module, etc. You define which states are active using the close_state dictionary attribute.



By default, close states are 3, 4, and 7. Everything else, by default is active=true. When one of the 3,4, 7 states is set, the system automatically changes active to false. This allows you to "group" your open and closed states together easier.



If you use active=true, you do not need to include "State is one of..." that's the whole point of the active field.



Dictionary Attributes - ServiceNow Wiki



I hope that helps.


Hi Chuck,


Thanks for your response. I would like to understand then if I need to report all open incidents for this month then condition will be Opened on this month, Incident state is not closed ?


As I understood, active is true condition show us all incidents open and closed together yes?



Best Regards,


Ulvi


Hi Ulvi,


As I understood, active is true condition show us all incidents open and closed together yes?



This is not correct active is true is just the opened (including New, Active, Review, or what ever states you use to indicate work in progress.) Closed, closed skipped, closed incomplete, and any other "complete/closed/canceled" states are active is false.



If you do this in a report and want open incidents for this month, the query is simple:



Opened | is | This Month AND


Active | is | true



Let me know if that answers your question.


Let me know if that answered your question. If so, please mark it as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.


If you are viewing this discussion from your "inbox", use the "mark as correct" option under actions. If you are viewing it directly from the thread use the Correct Answer link (red with a star).


Thank you