Create a Web Request Template
Click Add Template in the "Web Request Templates" section of the "Manage Tempates" dialog. The "Add Template" dialog for a web request looks like the following:
You have to enter the following information:
- Name: Name of the template.
- Method: Select the HTTP request method:
- GET
- POST
- PUT
- PATCH
- DELETE
- Path: The path for the request (e.g.,
/rest/api/space
). This will be combined with the URL of the target server. Issue variables will be replaced. - Headers: The headers for the request. Use a new line for each header. Key and value should be separated by a colon. Issue variables will be replaced.
- Body (only available for method POST, PUT and PATCH): The body of the web request. Issue variables will be replaced.
- Content-Type (only available for method POST, PUT and PATCH): Select the content type:
- application/json
- application/xml
- application/xhtml+xml
- application/x-www-form-urlencoded
- text/plain
- text/html
- text/xml
If you click the question mark icon in the top right corner of the template editor dialog, a help page is displayed that lists the replacement syntax for your Jira fields.
When done, click Save.