%JIRAREST{}% variable is handled by the JiraRestPlugin.
%JIRAREST{ "..." command="..." }%
| Parameter | Description | Default |
|---|---|---|
"..." oraction="..." | Action to take. This is the REST method: "get" for GET, "put" for PUT, "post" for POST, and "delete" for DELETE method. | "" (no action) |
command="..." | REST command, such as: "/rest/api/2/issue/TEST-1" | (required) |
data="..." | Request body sent with REST call, such as: " { \"id\": \"10009\" } " | (required for put and post actions) |
action2="..." | Conduct a second action after successful execution of the first action. Use this to do multiple REST API calls in one session. No action is taken if there was an error in the first action. In the same way, action3, action4, etc can be executed. | (optional) |
user="..." | User for REST call; default is configure setting {Plugins}{JiraRestPlugin}{User} | (configure setting) |
password="..." | Password for REST call; default is configure setting {Plugins}{JiraRestPlugin}{Password} | (configure setting) |
%JIRAREST{ "get" command="/rest/auth/1/session" }% - see more examples.