The CreatorCon Call for Content is officially open! Get started here.

Change Request/Change Task Database view

Jon_Jennings
Tera Contributor

I need to report on Change Requests opened in a given date range and on their related Change Tasks (if any).

I've created a database view joining the change_request and change_task tables.   My where condition is as follows:

change_request       prefix = cr       where clause = EMPTY     left join = false

change_task                 prefix = ct         where clause = ct_change_request = cr_sys_id       left join = false

My understanding is that this should yield all Change Requests and any Change Tasks whose "Change Request" field value matches a Change Request sys_id.

What I get instead is only Change Requests that have Change Tasks related as well as those Change Tasks.   We often have Change Requests with no Change Tasks related (yet) and need to see those in the report as well.   For some reason this is eluding me. Any help would be greatly appreciated.

5 REPLIES 5

Hi Rashmi,



Creating a single view with hundreds of fields sounds like a bit of an administrative issue as well as confusing to any users trying to consume that. Have you thought about using this property to show extended fields on lists and reports?



(change INSTANCE to your instance name)



https://INSTANCE.service-now.com/nav_to.do?uri=sys_properties.do?sys_id=ae30181a0a0a0b240092563a6bcc...