# Get Parent Project name(s)

**URL:** <https://forum.inductiveautomation.com/t/get-parent-project-name-s/103909>\
**Category:** Ignition\
**Created:** [March 19, 2025, 7:25pm UTC](https://forum.inductiveautomation.com/t/get-parent-project-name-s/103909 "2025-03-19T19:25:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Stilson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/brian_stilson/32/73410_2.png) [@Brian\_Stilson](https://forum.inductiveautomation.com/u/Brian_Stilson)\
**Post date:** [March 19, 2025, 7:25pm UTC](https://forum.inductiveautomation.com/t/get-parent-project-name-s/103909/1 "2025-03-19T19:25:24Z")

</div>

Is there a way via scripting to get the Parent Project's name? I know system.project.getProjectName() will get the current project's name, and getProjecNames() will get a list of all Projects on the Gateway, but is there a way to get the name of the Parent Project to the current one?

---

<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:** [March 19, 2025, 7:32pm UTC](https://forum.inductiveautomation.com/t/get-parent-project-name-s/103909/2 "2025-03-19T19:32:56Z")

</div>

If you get the current project object from the gateway context's project manager, you can use `.getParent()` to retrieve an `Optional<String>` for that.

---

<div class="post-metadata">

**Author:** ![Brian\_Stilson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/brian_stilson/32/73410_2.png) [@Brian\_Stilson](https://forum.inductiveautomation.com/u/Brian_Stilson)\
**Post date:** [March 19, 2025, 7:49pm UTC](https://forum.inductiveautomation.com/t/get-parent-project-name-s/103909/3 "2025-03-19T19:49:57Z")

</div>

I'm not familiar with the Gateway Context. Is this something I can do in a script somewhere? Are there any good resources to look up? I tried searching the forum for "Gateway Context" and I didn't really understand much of it.

EDIT:

I found this post: [How to get the names of inherited projects of the actively running project on a client? - #3 by nminchin](https://forum.inductiveautomation.com/t/how-to-get-the-names-of-inherited-projects-of-the-actively-running-project-on-a-client/40437/3)

Following that got me what I needed. Thanks!
