How to Restrict Issue creation for a particular Issue Type based on roles in Jira Server

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

このページの内容はサポート対象外のプラットフォームに関連しています。したがって、アトラシアン サポートではこのページの記載内容のサポートの提供は保証されません。この資料は情報提供のみを目的として提供されています。内容はお客様自身の責任でご利用ください。

目的

Only allow users in a certain role to be able to create an issue of a particular Issue Type. For example, in a project, you want to restrict the creation of Bug Issue Type to Developers. The solution below is specific to this scenario for simplicity. 

ソリューション

  1. Install the 3rd party add-on Workflow Enhancer for Jira
  2. Verify that the bug issue type has its own workflow
  3. Go to the diagram view of the workflow
  4. Here select the create transition
  5. Go to the transition's validator
  6. バリデーターの追加
  7. You will now see a new option called Universal Validator which comes from the addon installed
  8. here set the following as shown in the example below:
    Expression:   [roles]=/.*Developers.*/
    Expression must evaluate to:	True
    Message: Only Developers are allowed to create bugs
    

     You need to change this as per our own developer role name.

  9. Save this and publish the workflow.

There are other apps that can be used to achieve this goal as well, such as Jira Workflow Toolbox and ScriptRunner for Jira. For the instructions on how to configure each of them, the following articles can be used for reference:

ScriptRunner for Jira - Restricting Issue Types

Jira Workflow Toolbox - Limit issue creation per role and issue type


If you need more information about each of these apps and how to configure them, please reach out to their respective vendors.

説明 Restrict Issue creation for a particular Issue Type based on roles
製品Jira

最終更新日 2022 年 9 月 15 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.