Reminder

if you arrived here, it is probably that you have experienced some issue with one if Minyaa Workflows's Upgrade !

Sorry for these disagreement.

With below REST API, you will be able to replay some of Upgrade Task on a part of your Workflow.

To identify which Upgrade Tasks have to be replayed see Upgrade Notes pages.

/rest/minyaaWF/1.0/workflows/upgrade

Description

Launch a (or more) Upgrade Tasks on a set of Workflow.

Only UpgradeTask who extends com.alkaes.jira.upgrade.AbstractWorkflowUpgradeTask are allowed. The class AbstractWorkflowUpgradeTask is used by different Alkaes Plugin as soon as they provide Upgrade Task related Workflows.

MethodPOST
Content-Typeapplication/json
Parameters

PayLoad Parameters :

PropertiesValuesDescriptions
pluginKey
StringComplete Key of the plugin who provides the selected UpgradeTasks
workflowNames
List<String>List of Workflow Names for which you need to re-launch the selected Upgrade Tasks
upgradeClassNames
List<String>List of Workflow Upgrade Tasks to re-launch.
Sample :
Error rendering macro 'code': Invalid value specified for parameter 'com.atlassian.confluence.ext.code.render.InvalidValueException'
{
	"pluginKey": "fr.alkaes.minyaa.jira-plugin-minyaa-workflows",
	"workflowNames": [
		"nameOfMy1stWorflow",
		"nameOfMy2ndWorflow"
	],
	"upgradeClassNames": [
		"fr.alkaes.myaawf.upgrade.UpgradeTask_001",
		"fr.alkaes.myaawf.upgrade.UpgradeTask_002"
	]
}
HTTP 200 Return

In case of success, the list of Upgraded Workflows per Upgrade Task are listed ...

Error rendering macro 'code': Invalid value specified for parameter 'com.atlassian.confluence.ext.code.render.InvalidValueException'
{
	"pluginKey": "fr.alkaes.minyaa.jira-plugin-minyaa-workflows",
	"performedUpgrades": {
		"fr.alkaes.myaawf.upgrade.UpgradeTask_001": [
			"nameOfMy1stWorflow",
			"nameOfMy2ndWorflow"
		],
		"fr.alkaes.myaawf.upgrade.UpgradeTask_002": [
			"nameOfMy1stWorflow",
			"nameOfMy2ndWorflow"
		]
	}
}
  • No labels