# SRContext / historyManager in 8.0 from a gateway scoped script

**URL:** <https://forum.inductiveautomation.com/t/srcontext-historymanager-in-8-0-from-a-gateway-scoped-script/30078>\
**Category:** Ignition Early Access\
**Tags:** ignition80\
**Created:** [November 19, 2019, 9:24am UTC](https://forum.inductiveautomation.com/t/srcontext-historymanager-in-8-0-from-a-gateway-scoped-script/30078 "2019-11-19T09:24:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [November 19, 2019, 9:24am UTC](https://forum.inductiveautomation.com/t/srcontext-historymanager-in-8-0-from-a-gateway-scoped-script/30078/1 "2019-11-19T09:24:32Z")

</div>

I try to convert SRContext.get() from 7.9 to 8.0  
In my case I need to access the historyManager in a gateway scoped script …

```auto
from com.inductiveautomation.ignition.gateway import SRContext
context = SRContext.get()
connection = "histo"
qi = [(Long(qdi.id)) for qdi in context.historyManager.getQuarantinedDataInfo(connection)]

```

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 19, 2019, 1:06pm UTC](https://forum.inductiveautomation.com/t/srcontext-historymanager-in-8-0-from-a-gateway-scoped-script/30078/2 "2019-11-19T13:06:30Z")

</div>

SRContext was renamed to IgnitionGateway. Be aware that using these classes is absolutely unsupported by IA.
