-
Bug
-
Resolution: Won't Do
-
High
-
None
-
8.3.0, 8.4.0
-
8.03
-
1
-
Severity 2 - Major
-
2
-
Summary
When an administrator adds jira.permission.createclone.denied – to disable clone – in a workflow property, running the Get create issue meta fields (see JRASERVER-69897) fail.
http://localhost:8080/jira840/rest/api/2/issue/createmeta/AWD/issuetypes/10001
Steps to Reproduce
- Add jira.permission.createclone.denied in a workflow property of a status.
- Verify that users won't be able to clone issues in that particular status
- Run Get create issue meta fields
Expected Results
The metadata should be returned normally
Actual Results
When you are using the workflow property, the json response is empty:
{"maxResults":50,"startAt":0,"total":0,"isLast":true,"values":[]}
As opposed to when you remove the property:
{"maxResults":50,"startAt":0,"total":14,"isLast":true,"values":[{"required":false,"schema":{"type":"user","system":"assignee"},"name":"Assignee","fieldId":"assignee","autoCompleteUrl":"http://localhost:8080/jira840/rest/api/latest/user/assignable/search?issueKey=null&username=","hasDefaultValue":false,"operations":["set"]},{"required":false,"schema":{"type":"array","items":"attachment","system":"attachment"},"name":"Attachment","fieldId":"attachment","hasDefaultValue":false,"operations":[]},{"required":false,"schema":{"type":"array","items":"component","system":"components"},"name":"Component/s","fieldId":"components","hasDefaultValue":false,"operations":["add","set","remove"],"allowedValues":[]},{"required":false,"schema":{"type":"array","items":"string","custom":"com.pyxis.greenhopper.jira:gh-sprint","customId":10100},"name":"Sprint","fieldId":"customfield_10100","hasDefaultValue":false,"operations":["set"]},{"required":false,"schema":{"type":"any","custom":"com.pyxis.greenhopper.jira:gh-epic-link","customId":10101},"name":"Epic Link","fieldId":"customfield_10101","hasDefaultValue":false,"operations":["set"]},{"required":false,"schema":{"type":"string","system":"description"},"name":"Description","fieldId":"description","hasDefaultValue":false,"operations":["set"]},{"required":false,"schema":{"type":"array","items":"version","system":"fixVersions"},"name":"Fix Version/s","fieldId":"fixVersions","hasDefaultValue":false,"operations":["set","add","remove"],"allowedValues":[]},{"required":false,"schema":{"type":"array","items":"issuelinks","system":"issuelinks"},"name":"Linked Issues","fieldId":"issuelinks","autoCompleteUrl":"http://localhost:8080/jira840/rest/api/2/issue/picker?currentProjectId=&showSubTaskParent=true&showSubTasks=true¤tIssueKey=null&query=","hasDefaultValue":false,"operations":["add"]},{"required":true,"schema":{"type":"issuetype","system":"issuetype"},"name":"Issue Type","fieldId":"issuetype","hasDefaultValue":false,"operations":[],"allowedValues":[{"self":"http://localhost:8080/jira840/rest/api/2/issuetype/10001","id":"10001","description":"Created by Jira Software - do not edit or delete. Issue type for a user story.","iconUrl":"http://localhost:8080/jira840/images/icons/issuetypes/story.svg","name":"Story","subtask":false}]},{"required":false,"schema":{"type":"array","items":"string","system":"labels"},"name":"Labels","fieldId":"labels","autoCompleteUrl":"http://localhost:8080/jira840/rest/api/1.0/labels/suggest?query=","hasDefaultValue":false,"operations":["add","set","remove"]},{"required":false,"schema":{"type":"priority","system":"priority"},"name":"Priority","fieldId":"priority","hasDefaultValue":true,"operations":["set"],"allowedValues":[{"self":"http://localhost:8080/jira840/rest/api/2/priority/1","iconUrl":"http://localhost:8080/jira840/images/icons/priorities/highest.svg","name":"Highest","id":"1"},{"self":"http://localhost:8080/jira840/rest/api/2/priority/2","iconUrl":"http://localhost:8080/jira840/images/icons/priorities/high.svg","name":"High","id":"2"},{"self":"http://localhost:8080/jira840/rest/api/2/priority/3","iconUrl":"http://localhost:8080/jira840/images/icons/priorities/medium.svg","name":"Medium","id":"3"},{"self":"http://localhost:8080/jira840/rest/api/2/priority/4","iconUrl":"http://localhost:8080/jira840/images/icons/priorities/low.svg","name":"Low","id":"4"},{"self":"http://localhost:8080/jira840/rest/api/2/priority/5","iconUrl":"http://localhost:8080/jira840/images/icons/priorities/lowest.svg","name":"Lowest","id":"5"}],"defaultValue":{"self":"http://localhost:8080/jira840/rest/api/2/priority/3","iconUrl":"http://localhost:8080/jira840/images/icons/priorities/medium.svg","name":"Medium","id":"3"}},{"required":true,"schema":{"type":"project","system":"project"},"name":"Project","fieldId":"project","hasDefaultValue":false,"operations":["set"],"allowedValues":[{"self":"http://localhost:8080/jira840/rest/api/2/project/10000","id":"10000","key":"AWD","name":"Adventure Works Development","projectTypeKey":"software","avatarUrls":{"48x48":"http://localhost:8080/jira840/secure/projectavatar?avatarId=10324","24x24":"http://localhost:8080/jira840/secure/projectavatar?size=small&avatarId=10324","16x16":"http://localhost:8080/jira840/secure/projectavatar?size=xsmall&avatarId=10324","32x32":"http://localhost:8080/jira840/secure/projectavatar?size=medium&avatarId=10324"}}]},{"required":true,"schema":{"type":"user","system":"reporter"},"name":"Reporter","fieldId":"reporter","autoCompleteUrl":"http://localhost:8080/jira840/rest/api/latest/user/search?username=","hasDefaultValue":false,"operations":["set"]},{"required":true,"schema":{"type":"string","system":"summary"},"name":"Summary","fieldId":"summary","hasDefaultValue":false,"operations":["set"]}]}
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- is a regression of
-
JRASERVER-69897 Create new REST API to list issue types and fields with a scope
- Closed
- is related to
-
JRASERVER-45995 jira.permission.create.clone workflow property denying ability to Create Issues using REST API
- Closed
-
JRASERVER-67652 Using jira.permission.createclone.denied on Initial Workflow Status breaks Issue Creation via REST API
- Closed
- relates to
-
DELTA-896 Loading...