[GH-ISSUE #2491] [feature]: Import environment from Postman #841

Closed
opened 2026-03-16 17:23:44 +03:00 by kerem · 3 comments
Owner

Originally created by @ngocthua830 on GitHub (Jul 4, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2491

Is there an existing issue for this?

  • I have searched the existing issues

Summary

When import collection that using variables from Postman to Hoppscotch, all request are imported but not variables. I have to create environment manually.

Why should this be worked on?

That would be great if Hoppscotch have feature import environment's variable from Postman.

Originally created by @ngocthua830 on GitHub (Jul 4, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2491 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary When import collection that using variables from Postman to Hoppscotch, all request are imported but not variables. I have to create environment manually. ### Why should this be worked on? That would be great if Hoppscotch have feature import environment's variable from Postman.
kerem 2026-03-16 17:23:44 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@liyasthomas commented on GitHub (Jul 4, 2022):

Possibly a duplicate of #2124. Hence closing.

<!-- gh-comment-id:1173754950 --> @liyasthomas commented on GitHub (Jul 4, 2022): Possibly a duplicate of #2124. Hence closing.
Author
Owner

@KartikSoneji commented on GitHub (Jul 7, 2022):

Hi @ngocthua830
Can you please provide a sample postman collection to demonstrate the issue?

<!-- gh-comment-id:1177890773 --> @KartikSoneji commented on GitHub (Jul 7, 2022): Hi @ngocthua830 Can you please provide a sample postman collection to demonstrate the issue?
Author
Owner

@ngocthua830 commented on GitHub (Jul 8, 2022):

Hi @KartikSoneji I used this sample json file for import to hoppscotch, all item are imported but variables.

{
	"info": {
		"_postman_id": "cf08d0bd-8b31-4748-bf7e-f059de976e6c",
		"name": "sample_collection",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "sample_post",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "binary_file",
							"type": "file",
							"src": "/home/thua/Downloads/avatar.jpeg"
						},
						{
							"key": "age",
							"value": "23",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "{{domain}}/upload",
					"host": [
						"{{domain}}"
					],
					"path": [
						"upload"
					]
				}
			},
			"response": []
		}
	],
	"auth": {
		"type": "bearer",
		"bearer": [
			{
				"key": "token",
				"value": "this_is_token",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "domain",
			"value": "https://sample.com/"
		},
		{
			"key": "sample_name",
			"value": "sample1"
		}
	]
}
<!-- gh-comment-id:1178465156 --> @ngocthua830 commented on GitHub (Jul 8, 2022): Hi @KartikSoneji I used this sample json file for import to hoppscotch, all item are imported but variables. ``` { "info": { "_postman_id": "cf08d0bd-8b31-4748-bf7e-f059de976e6c", "name": "sample_collection", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "sample_post", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "binary_file", "type": "file", "src": "/home/thua/Downloads/avatar.jpeg" }, { "key": "age", "value": "23", "type": "text" } ] }, "url": { "raw": "{{domain}}/upload", "host": [ "{{domain}}" ], "path": [ "upload" ] } }, "response": [] } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "this_is_token", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "domain", "value": "https://sample.com/" }, { "key": "sample_name", "value": "sample1" } ] }
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#841
No description provided.