Is there a way to limit catalog forms to test users only if instance is DEV and TEST?

Byron Plant
Tera Contributor

We have created a new catalog form in ServiceNow integrated to JIRA.
However, we don't have dev or test environment for JIRA, it goes directly to PROD. So whenever we create sample tickets (for testing purposes) in ServiceNow DEV and TEST, the data goes directly in JIRA PRODUCTION. Our catalog form is using a flow design. And we already created sample test users in DEV and TEST. Is there a way we can limit the catalog form to only allow sample test users if the instance is DEV and TEST so that it won't affect the user data in JIRA PROD? Or if you have any better suggestion to fix this issue we have, it's very much appreciated! Thank you.

3 REPLIES 3

priyatam_pvp
Tera Guru

Create an update set

This Update Set will include User Criteria that restrict access to the catalogue form to only test users. If you have no license limitations for roles, create a dedicated test role (e.g., dummy_test_role), assign it to your test users, and then use this role in the User Criteria instead of adding individual users. This Update Set will be moved to the Test instance for validation but will not be moved to Production.

Chaitanya ILCR
Kilo Patron

Hi @Byron Plant ,

1. you can remove access to the rest of the users to that catalog item in the DEV and Test instances

2. In the flow you can check which instance the flow is being triggered in and ignore the api calls with an exception of test users

ChaitanyaILCR_0-1738174881967.pngChaitanyaILCR_1-1738174910128.png

 

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Hi @Chaitanya ILCR thanks for responding. However, I'm actually not familiar with set flow variables so I'm a bit confused. Where is the part where the form is only available form test users if the instance is DEV and TEST? and where is the part where it will run properly using the actual users if the instance is PROD? Also, I sent you a screenshot of our flow via message.