-
Bug
-
Resolution: Not a bug
-
Low
-
None
-
7.9.0
-
7.09
-
19
-
Severity 3 - Minor
-
19
-
Summary
If no one has permission to clone an issue when it's in the initial workflow status (the status the issue will be upon being created), it's not possible to create a new issue via REST API, if the issue to be created uses the same workflow.
Steps to reproduce
- Edit the workflow of issue type T in project P
- Click View Properties at the initial step e.g. Open
- Add this property:
Key: jira.permission.createclone.denied Value: true
- Publish the workflow
- Create a new issue P-1 via GUI using issue type T in project P
Expected behavior
- No one can clone P-1
- A new issue P-2 can be created via REST API using issue type T in project P (similar to how P-1 can be created via GUI)
Actual behavior
- No one can clone P-1
- A new issue P-2 can't be created via REST API using issue type T in project P
The following 400 Bad Request error is thrown:
{ "errorMessages": [], "errors": { "summary": "Field 'summary' cannot be set. It is not on the appropriate screen, or unknown." } }
This error is invalid because:
- Summary field is a known, required system field
- It's available on the Create Issue screen of issue type T in project P
Workaround
Grant the REST API user (e.g. admin) the permission to clone issues in the initial workflow status, by adding this property (keeping the other so that no one else can clone issues):
Key: jira.permission.createclone.user Value: admin
Then use admin for the REST API call to create issues.
The permission can also be granted to a specific group:
Key: jira.permission.createclone.group.1 Value: jira-administrators
Notes
This ticket supersedes JRASERVER-45995, JRASERVER-59487, and JRASERVER-62200, because incorrect keys are used there:
- jira.permission.create.clone
- jira.permission.create.clone.denied
When using these incorrect keys, JIRA throws these valid errors:
Unknown type 'clone' in meta attribute 'jira.permission.create.clone'. Valid permission types are defined in permission-types.xml Unknown type 'clone' in meta attribute 'jira.permission.create.clone.denied'. Valid permission types are defined in permission-types.xml
Using the right keys as mentioned in this ticket:
JRASERVER-45995is superseded by this ticket, and the same workaround can be appliedJRASERVER-59487andJRASERVER-62200are not valid any more
- is caused by
-
JRASERVER-72517 Workflow Permissions around issue creation are not enforced consistently between the UI & REST API
- Closed
- is related to
-
JRASERVER-44003 HTTP 400 error with misleading information are returned when creating the issue through REST API as a user with insufficient permission or invalid Authorization header
- Gathering Impact
-
JRASERVER-67013 REST API returns 400 error with misleading message when editing issues
- Gathering Impact
- relates to
-
JRASERVER-69981 jira.permission.createclone.denied workflow property breakes new createmeta REST API
- Closed
-
PSR-328 Loading...
- supersedes
-
JRASERVER-59487 jira.permission.create.clone.denied in workflow property breaks Get create issue meta API
- Closed
-
JRASERVER-45995 jira.permission.create.clone workflow property denying ability to Create Issues using REST API
- Closed
-
JRASERVER-62200 jira.permission.create.clone not working properly
- Closed