Create a web trigger
Write a web trigger script, turn it on and copy its URL, so another system can call it.
Applies to: Script Master for Jira and Script Master for Confluence Β· Cloud
Before you beginβ
- Jira or Confluence permission: Jira admin (the Administer Jira global permission) or Confluence admin.
- App permission: an active Script Master license.
- A configured Companion App. Without it, the script doesn't run. See Set up the Companion App.
- Fewer than 100 web triggers on the site. From 80 web triggers on, the list shows how many are left, for example 85 of 100 web triggers used Β· 15 left.
Create the web triggerβ
-
In Script Master, select the Web Triggers tab.
-
Select Create web trigger. The editor opens, marked New Β· not saved yet.
-
In Title, enter a name other admins will understand, for example
Create work item from monitoring alert. -
In Backend JavaScript, write the script. It must return an object with a
statusCode:const payload = JSON.parse(request.body || '{}');console.log('Received', payload);return {statusCode: 200,headers: { 'Content-Type': ['application/json'] },body: JSON.stringify({ received: true }),};Snippets has working examples to copy, such as Authorization, Request and Response.
-
Turn on Enable.
-
Select Save.

Result: The flag Web Trigger saved! appears, and Web Trigger URL: shows Script Master's own URL for this web trigger. Select the copy icon next to it and give the URL to the system that will call it.
Before the first save, the URL area says To generate the URL for this web trigger, please save it first.
The URL works for anyone who has it. Before you give it out, add a token check. See Require a token on a web trigger.
Save with a noteβ
Each save that changes the title or the script adds a version to the web trigger's version history. To say what changed, select the arrow next to Save, then Save with noteβ¦, and type the note. See Version history.
In the editor, Ctrl+S (Cmd+S on a Mac) also saves.
Other ways to startβ
Next to Create web trigger, the arrow opens Import. Paste a web trigger exported from another site. It arrives switched off. See Import, export and duplicate.
Relatedβ
- Test a web trigger: try the script with a sample request.
- Web trigger request and response: what the script receives and returns.
- Call a web trigger from Jira Automation: call the URL from a Jira Automation flow.