Not able to add "unsupported" validator through REST API in Bulk workflow transition error like "Rule cannot be applied to this type or is unsupported".
JIRA REST API Endpoint:
"https://your-domain.atlassian.net/rest/api/3/workflows/create"
ERROR RESPONSE:
{
"errors":
[
{
"type": "RULE",
"message": "Rule cannot be applied to this type or is unsupported.",
"code": "UNSUPPORTED_RULE",
"level": "WARNING",
"elementReference":
{
"ruleId": "fa355ea2-4ed8-48af-a893-779e6e229240"
}
}
]
}
Regards,
Ravi Prasad.
Hello @Ravi Prasad
Is the workflow for a Team Managed project or a Company Managed project?
What type of rule/validator are you trying to add? Please show us the code for the call you are making to the API.
Hi @Trudy Claspill ,
This workflow is company managed project.
validators: "ruleKey": "system:unsupported"
REST API Endpoint: https://your-domain.atlassian.net/rest/api/3/workflows/create
Regards,
Ravi Prasad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please provide the data that you are providing in the API call, aligning with what the documentation specifies as required and valid input.
If you are using variables within the data, please provide the code that sets the value for the variables.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ENDPOINT: https://your-domain.atlassian.net/rest/api/3/workflows/create
METHOD: POST
Payload:
{
"scope": {
"type": "GLOBAL"
},
"statuses": [
{
"id": "10066",
"name": "Pending",
"statusCategory": "IN_PROGRESS",
"statusReference": "4d3f71d4-8b82-4875-99be-7901ca79018f"
},
{
"id": "10067",
"name": "Work in progress",
"statusCategory": "IN_PROGRESS",
"statusReference": "0b0c3da7-6b98-46b5-86c4-d36e449d742f"
},
{
"id": "4",
"name": "Reopened",
"statusCategory": "TODO",
"statusReference": "183be548-2f9f-4f51-8a77-bc3b6edc0c49"
},
{
"id": "1",
"name": "Open",
"statusCategory": "TODO",
"statusReference": "0d991c34-6edd-4f39-8d6a-c4cff4667e9b"
},
{
"id": "10000",
"name": "Done",
"statusCategory": "DONE",
"statusReference": "31ae7e5c-a6d8-4767-8eec-c30b94f0ae5b"
}
],
"workflows": [
{
"name": "BENKL01: Jira Service Management default workflow",
"description": "This Jira Service Management default workflow was generated for Project BEN1",
"startPointLayout": {
"x": 702.5,
"y": -35.19999999999999
},
"statuses": [
{
"layout": {
"x": 491.38671875,
"y": 166.09999755859377
},
"properties": {},
"statusReference": "4d3f71d4-8b82-4875-99be-7901ca79018f"
},
{
"layout": {
"x": 636.359375,
"y": 166.09999755859377
},
"properties": {},
"statusReference": "0b0c3da7-6b98-46b5-86c4-d36e449d742f"
},
{
"layout": {
"x": 662.6328125,
"y": 276.09999755859377
},
"properties": {},
"statusReference": "183be548-2f9f-4f51-8a77-bc3b6edc0c49"
},
{
"layout": {
"x": 677.9140625,
"y": 59.80000000000001
},
"properties": {},
"statusReference": "0d991c34-6edd-4f39-8d6a-c4cff4667e9b"
},
{
"layout": {
"x": 861.98828125,
"y": 166.09999755859377
},
"properties": {},
"statusReference": "31ae7e5c-a6d8-4767-8eec-c30b94f0ae5b"
}
],
"transitions": [
{
"id": "1",
"name": "Back to open",
"description": "",
"type": "DIRECTED",
"toStatusReference": "0d991c34-6edd-4f39-8d6a-c4cff4667e9b",
"links": [
{
"fromStatusReference": "4d3f71d4-8b82-4875-99be-7901ca79018f",
"fromPort": 1
},
{
"fromStatusReference": "0b0c3da7-6b98-46b5-86c4-d36e449d742f",
"fromPort": 1
}
],
"actions": [],
"validators": [],
"triggers": [],
"properties": {
"jira.i18n.title": "sd.workflow.back.to.open"
}
},
{
"id": "2",
"name": "Pending",
"description": "",
"type": "DIRECTED",
"toStatusReference": "4d3f71d4-8b82-4875-99be-7901ca79018f",
"links": [
{
"fromStatusReference": "0d991c34-6edd-4f39-8d6a-c4cff4667e9b",
"fromPort": 7
},
{
"fromStatusReference": "0b0c3da7-6b98-46b5-86c4-d36e449d742f",
"fromPort": 7
},
{
"fromStatusReference": "183be548-2f9f-4f51-8a77-bc3b6edc0c49",
"fromPort": 7
}
],
"transitionScreen": {
"ruleKey": "system:transition-screen",
"parameters": {
"screenId": "10069"
}
},
"actions": [],
"validators": [
{
"ruleKey": "system:unsupported",
"parameters": {
"class.name": "com.atlassian.jira.workflow.validator.UserPermissionValidator",
"nullallowed": "true",
"permissionKey": "ADMINISTER_PROJECTS",
"vars.key": "Ravi Prasad"
}
}
],
"triggers": [],
"properties": {
"jira.i18n.title": "sd.workflow.pending"
}
},
{
"id": "3",
"name": "Start progress",
"description": "",
"type": "DIRECTED",
"toStatusReference": "0b0c3da7-6b98-46b5-86c4-d36e449d742f",
"links": [
{
"fromStatusReference": "0d991c34-6edd-4f39-8d6a-c4cff4667e9b",
"fromPort": 5
},
{
"fromStatusReference": "4d3f71d4-8b82-4875-99be-7901ca79018f",
"fromPort": 3
},
{
"fromStatusReference": "183be548-2f9f-4f51-8a77-bc3b6edc0c49",
"fromPort": 1
}
],
"transitionScreen": {
"ruleKey": "system:transition-screen",
"parameters": {
"screenId": "10068"
}
},
"actions": [],
"validators": [],
"triggers": [],
"properties": {
"jira.i18n.title": "sd.workflow.start.progress"
}
},
{
"id": "4",
"name": "Create",
"description": "",
"type": "INITIAL",
"toStatusReference": "0d991c34-6edd-4f39-8d6a-c4cff4667e9b",
"links": [
],
"actions": [],
"validators": [
{
"ruleKey": "system:check-permission-validator",
"parameters": {
"permissionKey": "CREATE_ISSUES"
}
}
],
"triggers": [],
"properties": {}
},
{
"id": "5",
"name": "Reopen issue",
"description": "",
"type": "DIRECTED",
"toStatusReference": "183be548-2f9f-4f51-8a77-bc3b6edc0c49",
"links": [
{
"fromStatusReference": "31ae7e5c-a6d8-4767-8eec-c30b94f0ae5b",
"fromPort": 5
}
],
"actions": [
{
"parameters": {
"field": "resolution",
"value": "",
"mode": ""
},
"ruleKey": "system:update-field"
}
],
"validators": [{
"ruleKey": "system:unsupported",
"parameters": {
"class.name": "com.atlassian.jira.workflow.validator.UserPermissionValidator",
"nullallowed": "true",
"permissionKey": "ADMINISTER_PROJECTS",
"vars.key": "Ravi Prasad"
}
}],
"triggers": [],
"properties": {
"jira.i18n.title": "sd.workflow.reopen.issue",
"sd.resolution.clear": ""
}
},
{
"id": "6",
"name": "Mark as done",
"description": "",
"type": "DIRECTED",
"toStatusReference": "31ae7e5c-a6d8-4767-8eec-c30b94f0ae5b",
"links": [
{
"fromStatusReference": "0d991c34-6edd-4f39-8d6a-c4cff4667e9b",
"fromPort": 3
},
{
"fromStatusReference": "0b0c3da7-6b98-46b5-86c4-d36e449d742f",
"fromPort": 3
},
{
"fromStatusReference": "183be548-2f9f-4f51-8a77-bc3b6edc0c49",
"fromPort": 3
}
],
"transitionScreen": {
"ruleKey": "system:transition-screen",
"parameters": {
"screenId": "10070"
}
},
"actions": [],
"validators": [{
"ruleKey": "system:unsupported",
"parameters": {
"class.name": "com.atlassian.jira.workflow.validator.UserPermissionValidator",
"nullallowed": "true",
"permissionKey": "ADMINISTER_PROJECTS",
"vars.key": "Chetan"
}
}],
"triggers": [],
"properties": {
"jira.i18n.title": "sd.workflow.mark.as.done"
}
}
]
}
]
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.