Automatically set issue Security Level based on group membership in Jira

プラットフォームについて: Cloud および Data Center - この記事はクラウドと 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 は除く

要約

You're looking to set a security level based on whether the reporter of the issue belongs to a group that is in the security level.

Set security level using Jira Automation

Jira Automation (automatically included in Jira Cloud) allows you to automatically update issue fields, including security level, based on certain conditions.

  1. [プロジェクト設定] > [プロジェクト自動化] の順に移動します。
  2. Select Create rule
  3. 新規トリガー: 課題の作成
  4. 新規条件: ユーザー条件
    1. ユーザー - 報告者
    2. 実行前のチェック - ユーザーがグループに所属
    3. 条件 - <グループ名>
  5. 新規アクション: 課題を編集
    1. ドロップダウン メニューから [セキュリティ レベル] フィールドを選択

Notes: The default Security Level in your security scheme must be "None." If not, the default security level will overwrite the update of automation.

Automatically set security level using ScriptRunner

An alternative to Jira Automation leverages the popular add-on Script Runner.

Please note that Atlassian can not provide technical support for ScriptRunner functions. If you encounter problems you may need to contact the add-on vendor.


  1. Create a copy of the current workflow
  2. Edit the Workflow
  3. Select the transition from Create to Open, then select post function
  4. Select Add Post Function
  5. Choose Script Post-Function and select Add
  6. [Set Issue Security Level depending on Provided condition] を選択します。
  7. Select Expand Example and Select "Reporter is a member of a particular group"
  8. Edit the name of the group in the textfield to match the name of your group
  9. Select the name of the Security from the Drop Down
  10. Select Add
  11. Associate the Workflow with your project

これで、グループのメンバーが課題を作ると、この事後操作で構成したセキュリティ レベルが設定されます。

Last modified on Mar 25, 2025

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

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