Fix HTTP 500 error on issue workflow transition due to unknown type in meta attribute.
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
During workflow transition, jira throws and HTTP 500 in the UI along with:
1
2
3
4
5
6
7
Referer URL: http://localhost:8858/j858/secure/CreateIssue.jspa
java.lang.RuntimeException: Unknown type 'group1' in meta attribute 'jira.permission.edit.group1'. Valid permission types are defined in permission-types.xml
java.lang.RuntimeException: Unknown type 'group1' in meta attribute 'jira.permission.edit.group1'. Valid permission types are defined in permission-types.xml
at com.atlassian.jira.permission.WorkflowPermissionFactory.createWorkflowPermission(WorkflowPermissionFactory.java:86) [classes/:?]
at com.atlassian.jira.permission.WorkflowPermissionFactory.getWorkflowPermissions(WorkflowPermissionFactory.java:42) [classes/:?]
[...]
Diagnosis
From the atlassian-jira.log
we see this RuntimeException as during workflow transition (create issue in this case), WorkflowBasedPermissionManager finds this unknown meta attribute: 'jira.permission.edit.group1':
1
2
3
4
5
2021-01-06 09:35:29,961-0500 http-nio-8080-exec-28 url:/secure/AjaxIssueAction!default.jspa username:xxxxx ERROR [o.a.c.c.C.[.[localhost].[/].[action]] Servlet.service() for servlet [action] in context with path [] threw exception [java.lang.RuntimeException: Unknown type 'group1' in meta attribute 'jira.permission.edit.group1'. Valid permission types are defined in permission-types.xml] with root cause
java.lang.RuntimeException: Unknown type 'group1' in meta attribute 'jira.permission.edit.group1'. Valid permission types are defined in permission-types.xml
at com.atlassian.jira.permission.WorkflowPermissionFactory.createWorkflowPermission(WorkflowPermissionFactory.java:86)
at com.atlassian.jira.permission.WorkflowPermissionFactory.getWorkflowPermissions(WorkflowPermissionFactory.java:42)
[...]
Cause
The workflow property set on the transition status is invalid. Reference: Workflow properties
Solution
In this example, the error is coming because jira.permission.edit.group1
is not a valid property key.
For a single group you can use
jira.permission.edit.group
If more than one group is to be added in workflow property, then the groups must be given a sequential number separated by the "." (dot)
e.g.: jira.permission.edit.group
.1
, jira.permission.edit.group
.2
,....
We do not recommend using all of these types of workflow properties as we cannot guarantee that some data and operations (e.g. bulk operations) will not be broken. Hence, use these types of workflow properties at your own risk!
Was this helpful?