[GH-ISSUE #3728] [feature]: pre-request script in collection level #1291

Open
opened 2026-03-16 19:40:46 +03:00 by kerem · 24 comments
Owner

Originally created by @cethol on GitHub (Jan 7, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3728

Is there an existing issue for this?

  • I have searched the existing issues

Summary

  • Option to setup pre-request script in collection level

Why should this be worked on?

We already have pre-request script in the request level, i think it would be so great if we could put the pre-request script in collection level. Because if we do that in request level we should write redundant script for every request.

Originally created by @cethol on GitHub (Jan 7, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3728 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary * Option to setup pre-request script in collection level ### Why should this be worked on? We already have pre-request script in the request level, i think it would be so great if we could put the pre-request script in collection level. Because if we do that in request level we should write redundant script for every request.
Author
Owner

@amal-mobiux commented on GitHub (Mar 5, 2024):

@liyasthomas @AndrewBastin
Is there any progress on this issue?
or is it free to take up?

<!-- gh-comment-id:1978739481 --> @amal-mobiux commented on GitHub (Mar 5, 2024): @liyasthomas @AndrewBastin Is there any progress on this issue? or is it free to take up?
Author
Owner

@liyasthomas commented on GitHub (Mar 5, 2024):

Hi @amal-mobiux, we're still at initial plans for this feature hence this is free to take up as a challenge. Let me know if you need any help with codebase - feel free to pick this up.

<!-- gh-comment-id:1978756309 --> @liyasthomas commented on GitHub (Mar 5, 2024): Hi @amal-mobiux, we're still at initial plans for this feature hence this is free to take up as a challenge. Let me know if you need any help with codebase - feel free to pick this up.
Author
Owner

@camsvn commented on GitHub (Mar 8, 2024):

Hi there @liyasthomas! Thanks for respondin and offering this opportunity. I'm excited to take on the challenge of working on this feature. I'll dive into the codebase and let you know if I have any questions or need assistance along the way.

<!-- gh-comment-id:1985386280 --> @camsvn commented on GitHub (Mar 8, 2024): Hi there @liyasthomas! Thanks for respondin and offering this opportunity. I'm excited to take on the challenge of working on this feature. I'll dive into the codebase and let you know if I have any questions or need assistance along the way.
Author
Owner

@BrilloPad8 commented on GitHub (May 10, 2024):

I would like this feature also.

<!-- gh-comment-id:2105057535 --> @BrilloPad8 commented on GitHub (May 10, 2024): I would like this feature also.
Author
Owner

@camsvn commented on GitHub (May 15, 2024):

I would like this feature also.

This is a WIP. I try working on this every weekend, hence the slow progress.
I'll soon create a draft PR for this issue

<!-- gh-comment-id:2111512488 --> @camsvn commented on GitHub (May 15, 2024): > I would like this feature also. This is a WIP. I try working on this every weekend, hence the slow progress. I'll soon create a draft PR for this issue
Author
Owner

@johnhorse commented on GitHub (Jul 15, 2024):

Hey, do you think we could get this feature up and running by the next release?

<!-- gh-comment-id:2228541834 --> @johnhorse commented on GitHub (Jul 15, 2024): Hey, do you think we could get this feature up and running by the next release?
Author
Owner

@ChristoferMendes commented on GitHub (Sep 3, 2024):

This is the only feature blocking me from moving from Postman :/

<!-- gh-comment-id:2326703109 --> @ChristoferMendes commented on GitHub (Sep 3, 2024): This is the only feature blocking me from moving from Postman :/
Author
Owner

@liyasthomas commented on GitHub (Sep 3, 2024):

We've prioritized this feature in our roadmap. Expecting to release this feature in October.

<!-- gh-comment-id:2326733524 --> @liyasthomas commented on GitHub (Sep 3, 2024): We've prioritized this feature in our roadmap. Expecting to release this feature in October.
Author
Owner

@camsvn commented on GitHub (Sep 27, 2024):

@liyasthomas Thank you for the update! I appreciate that this feature is now a priority on the roadmap. I’ve been a bit delayed in my process, but I’ll make sure to get it done in time for the release in October.

<!-- gh-comment-id:2380014931 --> @camsvn commented on GitHub (Sep 27, 2024): @liyasthomas Thank you for the update! I appreciate that this feature is now a priority on the roadmap. I’ve been a bit delayed in my process, but I’ll make sure to get it done in time for the release in October.
Author
Owner

@danielhoang99 commented on GitHub (Oct 15, 2024):

liyasthomas sorry but can you tell me when this part will be released?

<!-- gh-comment-id:2413495565 --> @danielhoang99 commented on GitHub (Oct 15, 2024): [liyasthomas](https://github.com/liyasthomas) sorry but can you tell me when this part will be released?
Author
Owner

@safwanyp commented on GitHub (Oct 31, 2024):

We've prioritized this feature in our roadmap. Expecting to release this feature in October.

Any updates? It's the only feature stopping us from moving from Postman.

<!-- gh-comment-id:2449163984 --> @safwanyp commented on GitHub (Oct 31, 2024): > We've prioritized this feature in our roadmap. Expecting to release this feature in October. Any updates? It's the only feature stopping us from moving from Postman.
Author
Owner

@GeorgeIpsum commented on GitHub (Nov 18, 2024):

@camsvn hey! Wanted to know if you needed any support or could use any help in developing this. This is practically the only feature stopping my team from switching over to hoppscotch entirely, so would definitely like to help unblock if at all possible

<!-- gh-comment-id:2484077227 --> @GeorgeIpsum commented on GitHub (Nov 18, 2024): @camsvn hey! Wanted to know if you needed any support or could use any help in developing this. This is practically the only feature stopping my team from switching over to hoppscotch entirely, so would definitely like to help unblock if at all possible
Author
Owner

@jona-termly commented on GitHub (Feb 13, 2025):

Periodic check in to see if there's any update here?

<!-- gh-comment-id:2657632718 --> @jona-termly commented on GitHub (Feb 13, 2025): Periodic check in to see if there's any update here?
Author
Owner

@gatspy commented on GitHub (Mar 9, 2025):

@camsvn hey! Wanted to know if you needed any support or could use any help in developing this. This is practically the only feature stopping my team from switching over to hoppscotch entirely, so would definitely like to help unblock if at all possible嘿!想知道你们在开发这个功能时是否需要支持或帮助。这几乎是阻止我的团队完全转向 hoppscotch 的唯一功能,所以如果可能的话,我绝对愿意提供帮助。

I can't wait for the new version to drop with this feature. Once it's out, I'm definitely gonna jump on it right away. 💯

<!-- gh-comment-id:2708722296 --> @gatspy commented on GitHub (Mar 9, 2025): > [@camsvn](https://github.com/camsvn) hey! Wanted to know if you needed any support or could use any help in developing this. This is practically the only feature stopping my team from switching over to hoppscotch entirely, so would definitely like to help unblock if at all possible嘿!想知道你们在开发这个功能时是否需要支持或帮助。这几乎是阻止我的团队完全转向 hoppscotch 的唯一功能,所以如果可能的话,我绝对愿意提供帮助。 I can't wait for the new version to drop with this feature. Once it's out, I'm definitely gonna jump on it right away. 💯
Author
Owner

@filipjnc commented on GitHub (Mar 10, 2025):

The PR is here: https://github.com/hoppscotch/hoppscotch/pull/4070
Maybe somebody from the community who worked on the codebase before can contribute. It would take me hours to learn the codebase to be able to contribute on this one.

<!-- gh-comment-id:2710340901 --> @filipjnc commented on GitHub (Mar 10, 2025): The PR is here: https://github.com/hoppscotch/hoppscotch/pull/4070 Maybe somebody from the community who worked on the codebase before can contribute. It would take me hours to learn the codebase to be able to contribute on this one.
Author
Owner

@ruan-molinari commented on GitHub (Apr 2, 2025):

Could someone from the hoppscotch team review this PR?

This is the only feature pending for the company I work at to switch to hoppscotch. We have several teams with multiple projects and tons of endpoints, and this is a must have for us.

<!-- gh-comment-id:2772523731 --> @ruan-molinari commented on GitHub (Apr 2, 2025): Could someone from the hoppscotch team review this PR? This is the only feature pending for the company I work at to switch to hoppscotch. We have several teams with multiple projects and tons of endpoints, and this is a must have for us.
Author
Owner

@manulifeam-chenmax commented on GitHub (Apr 29, 2025):

We've prioritized this feature in our roadmap. Expecting to release this feature in October.

The second October is almost here 😄

<!-- gh-comment-id:2837838354 --> @manulifeam-chenmax commented on GitHub (Apr 29, 2025): > We've prioritized this feature in our roadmap. Expecting to release this feature in October. The second October is almost here 😄
Author
Owner

@GeorgeIpsum commented on GitHub (May 30, 2025):

Could someone from the hoppscotch team review this PR?

This is the only feature pending for the company I work to switch to hoppscotch. We have several teams with multiple projects and tons of endpoints, and this is a must have for us.

The PR in its current state is (I think) unfortunately incomplete. As far as I can tell, current commits have only added the base tab UI to collection properties, though I'm not sure if more work has gone into this behind the scenes. I haven't heard from @camsvn regarding any updates here either, so I may try and tackle this myself in the next month or two once I get time. Not sure if anyone from the hoppscotch team is prioritizing this however

<!-- gh-comment-id:2922797409 --> @GeorgeIpsum commented on GitHub (May 30, 2025): > Could someone from the hoppscotch team review this PR? > > This is the only feature pending for the company I work to switch to hoppscotch. We have several teams with multiple projects and tons of endpoints, and this is a must have for us. The PR in its current state is (I think) unfortunately incomplete. As far as I can tell, current commits have only added the base tab UI to collection properties, though I'm not sure if more work has gone into this behind the scenes. I haven't heard from @camsvn regarding any updates here either, so I may try and tackle this myself in the next month or two once I get time. Not sure if anyone from the hoppscotch team is prioritizing this however
Author
Owner

@pavelicii commented on GitHub (Jun 13, 2025):

@liyasthomas Is this feature still prioritized in your roadmap?

<!-- gh-comment-id:2970673843 --> @pavelicii commented on GitHub (Jun 13, 2025): @liyasthomas Is this feature still prioritized in your roadmap?
Author
Owner

@Nackophilz commented on GitHub (Jul 18, 2025):

Up on this feature , the pre request script on collection, especially for auth header is a must have , still prio ?

<!-- gh-comment-id:3088671735 --> @Nackophilz commented on GitHub (Jul 18, 2025): Up on this feature , the pre request script on collection, especially for auth header is a must have , still prio ?
Author
Owner

@geert-mol commented on GitHub (Sep 17, 2025):

Not having this feature is a deal breaker for me.

<!-- gh-comment-id:3301619496 --> @geert-mol commented on GitHub (Sep 17, 2025): Not having this feature is a deal breaker for me.
Author
Owner

@andrewneoatdoshii commented on GitHub (Nov 26, 2025):

this should be a base feature..

<!-- gh-comment-id:3578261561 --> @andrewneoatdoshii commented on GitHub (Nov 26, 2025): this should be a base feature..
Author
Owner

@agungkes commented on GitHub (Dec 10, 2025):

So this feature isn't really on the roadmap yet?

<!-- gh-comment-id:3634906057 --> @agungkes commented on GitHub (Dec 10, 2025): So this feature isn't really on the roadmap yet?
Author
Owner

@johnan319 commented on GitHub (Jan 5, 2026):

Hey everyone, we recently migrated to Hoppscotch but didn't realise this feature doesn't exist coming from Postman. I briefly added the feature and tested it locally and it seems to work, it's not the prettiest but happy to receive feedback!

For some reason I had issue checkout to the existing branch so I just created a new one.

PR here

<!-- gh-comment-id:3709048917 --> @johnan319 commented on GitHub (Jan 5, 2026): Hey everyone, we recently migrated to Hoppscotch but didn't realise this feature doesn't exist coming from Postman. I briefly added the feature and tested it locally and it seems to work, it's not the prettiest but happy to receive feedback! For some reason I had issue checkout to the existing branch so I just created a new one. PR [here](https://github.com/hoppscotch/hoppscotch/pull/5745)
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#1291
No description provided.