Error "We couldn’t restrict your issue type. Refresh the page and try again." while trying to restrict Subtasks on a Team Managed project
Delete this section above the line before publishing your KB
This KCS problem template is for a KB that solves a specific problem or answers a specific question that requires a detailed answer
Be sure to create your KB according to:
プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。
要約
Unable to restrict subtask work type on Team managed project, error "We couldn’t restrict your issue type. Refresh the page and try again." is encountered
環境
Jira Software Cloud
診断
Try to use the restrict Subtasks in a Team Managed Software project for users having specific Project role it will throw an exception "We couldn’t restrict your issue type. Refresh the page and try again"
原因
This is a UI Bug i.e. the API which is being used to restrict work types is not applicable on Subtasks. Due to this, Jira will throw an exception. Ideally, the UI should not show us the lock option for Subtasks work types.
ソリューション
- Generate HAR file and for "issuerestrictions" web request you will see below error message
- Ideally the option to restrict Subtasks issue types should not appear on UI
- Subtasks work are supposed to be created when you want to further breakdown the work in standard worktype in smaller units/work
- Issue restriction should be applied for Standard issue types (Story, Bug, Task etc) and the same should be inherited by the linked child Subtasks
- As a workaround you can edit the workflow of Subtasks and under Create transition use Rule validator "Validate that people have a specific permission" define the Permission. Users with that specifc permission can only create subtasks work type, however this wont refrain other users from viewing the subtasks work created.
- Work level security is inherited from Parent work type, for example restriction is set for Task work type, now when a user without that role creates a Task, the Task is created, however, the user is unable to Browse the Task and thus wont be able to create the Subtasks under the restricted parent.