Cloud Migration Resources
Planning a Jira Cloud migration? These resources can help you get started:
→ JMWE Cloud features – Review Cloud features and understand key differences between DC and Cloud.
→ Migration support from Appfire – Learn how we can help you migrate smoothly.
JMWE REST API Details
REST API endpoints exist for several types of extensions, including Shared Actions, Shared Conditions, and Shared Validators, as well as Event-based and Scheduled Actions.
Shared action REST API details
Rest API URL | Method | Description | |
|---|---|---|---|
| 1 |
| PUT | Creates a Shared Action (or draft Shared Action). See API Payload Structure, below. |
| 2 |
| GET | Returns a list of all Shared Actions. |
| 3 |
| PUT | Promotes an existing draft of the Shared Action with the specified ID, making it the active configuration. |
| 4 |
| GET | Returns the configuration of the Shared Action with the specified ID. |
| 5 |
| DELETE | Delete the Shared Action with the specified ID. |
| 6 |
| GET | Returns the configuration of the draft Shared Action with the specified ID. |
| 7 |
| POST | Duplicate the Shared Action with the specified ID. |
Shared condition REST API details
Rest API URL | Method | Description | |
|---|---|---|---|
| 1 |
| PUT | Creates a Shared Condition (or draft Shared Condition). See API Payload Structure, below. |
| 2 |
| GET | Returns a list of all Shared Condition. |
| 3 |
| PUT | Promotes an existing draft of the Shared Condition with the specified ID, making it the active configuration. |
| 4 |
| GET | Returns the configuration of the Shared Condition with the specified ID. |
| 5 |
| DELETE | Delete the Shared Condition with the specified ID. |
| 6 |
| POST | Duplicate the Shared Condition with the specified ID. |
Shared validator REST API details
Rest API URL | Method | Description | |
|---|---|---|---|
| 1 |
| PUT | Creates a Shared Validator (or draft Shared Validator). See API Payload Structure, below. |
| 2 |
| GET | Returns a list of all Shared Validators. |
| 3 |
| PUT | Promotes an existing draft of the Shared Validator with the specified ID, making it the active configuration. |
| 4 |
| GET | Returns the configuration of the Shared Validator with the specified ID. |
| 5 |
| DELETE | Delete the Shared Validator with the specified ID. |
| 6 |
| POST | Duplicate the Shared Validator with the specified ID. |
Event-based action REST API details
Please note: the parameter values for creating an Event-based Action can be complicated; there are numerous options, with dynamic option values that are dependent on configurations of controlling parameters. For this reason, it is highly recommended that you create a sample Event-based action and examine the configuration of that extension using the REST API endpoint. Future extensions can be configured using that baseline.
Rest API URL | Method | Description | |
|---|---|---|---|
| 1 |
| PUT | Create an Event-based Action (or draft Event-based Action). See API Payload Structure, below. |
| 2 |
| GET | Returns a list of all Event-based Actions. |
| 3 |
| PUT | Promotes an existing draft of the Event-based Action with the specified ID, making it the active configuration. |
| 4 |
| GET | Returns the configuration of the Event-based Action with the specified ID |
| 5 |
| DELETE | Delete the Event-based Action with the specified ID. |
| 6 |
| GET | Returns the configuration of a draft Event-based Action with the specified ID. |
| 7 |
| POST | Duplicate the Event-based Action with the specified ID. |
| 8 |
| POST | Toggle the status of the Event-based Action between Enabled and Disabled; if the Event-based Action is currently enabled, it will be disabled, and vice versa. |
Scheduled Action Rest API details
Rest API URL | Method | Description | |
|---|---|---|---|
| 1 |
| PUT | Create a Schedule Action (or draft Scheduled Action). See API Payload Structure, below. |
| 2 |
| GET | Returns a list of Scheduled Actions. |
| 3 |
| DELETE | Delete the Scheduled Action with the specified ID. |
| 4 |
| PUT | Toggle the status of the Scheduled Action between Enabled and Disabled; if the Scheduled Action is currently enabled, it will be disabled, and vice versa. |
| 5 |
| GET | Returns the configuration of the Scheduled Action with the specified ID. |
| 6 |
| GET | Manually run the Scheduled Action. |
| 7 |
| GET | Fetch the last run and next run data for all Scheduled Actions. |
| 8 |
| GET | Returns the configuration of the draft Scheduled Action with the specified ID. |
API payload structure
Below are two examples of the API payload for creating an extension.
Create Shared Action
{
"name": "Example action",
"description": "Test",
"postFunctions": [
{
"pluginModuleKey": "com.innovalog.jmwe.jira-misc-workflow-extensions:assigntorolemember",
"configuration": "<function type=\"class\">\n <arg name=\"groovyExpression\"></arg>\n <arg name=\"forceSelectedUser\">no</arg>\n <arg name=\"jira.projectrole.id\">10002</arg>\n <arg name=\"full.module.key\">com.innovalog.jmwe.jira-misc-workflow-extensionsassigntorolemember</arg>\n <arg name=\"throwExceptions\">false</arg>\n <arg name=\"class.name\">com.innovalog.jmwe.plugins.functions.AssignToRoleMemberFunction</arg>\n <arg name=\"extensionId\">14240cab-d226-4855-b3ac-a27b26b921d3</arg>\n <arg name=\"useSelectedUser\">no</arg>\n <arg name=\"useGroovyCondition\">false</arg>\n <arg name=\"skipIfAssignee\">no</arg>\n</function>\n",
"order": 0
}
]
}The fields in the above example are:
name - Required. This value must be unique.
description
postFunctions - An array of objects containing fields using a similar module.
pluginModuleKey - Fully qualified module key.
configuration - XML string containing the configuration for the extension.
order - The order of the extension.
Create Draft Shared Action
{
"draft": true,
"draftId": "aa5b2c0e-3f2f-4126-95d7-1f66bf694367",
"name": "Draft creation example",
"description": "Test - edited",
"postFunctions": [
{
"pluginModuleKey": "com.innovalog.jmwe.jira-misc-workflow-extensions:assigntorolemember",
"configuration": "<function type=\"class\">\n <arg name=\"groovyExpression\"></arg>\n <arg name=\"forceSelectedUser\">no</arg>\n <arg name=\"jira.projectrole.id\">10002</arg>\n <arg name=\"full.module.key\">com.innovalog.jmwe.jira-misc-workflow-extensionsassigntorolemember</arg>\n <arg name=\"throwExceptions\">false</arg>\n <arg name=\"class.name\">com.innovalog.jmwe.plugins.functions.AssignToRoleMemberFunction</arg>\n <arg name=\"extensionId\">14240cab-d226-4855-b3ac-a27b26b921d3</arg>\n <arg name=\"useSelectedUser\">no</arg>\n <arg name=\"useGroovyCondition\">false</arg>\n <arg name=\"skipIfAssignee\">no</arg>\n</function>\n",
"order": 0
}
]
}The fields in the above example are:
draft - True/False. Designation for draft status of the extension.
draftId - Unique ID of the draft extension.
name - Required. This value must be unique.
description
postFunctions - An array of objects containing fields using a similar module.
pluginModuleKey - Fully qualified module key.
configuration - XML string containing the configuration for the extension.
order - The order of the extension.