官术网_书友最值得收藏!

How to do it...

Once you have installed the ScriptRunner for Jira add-on, we will first need to create what is known as a behavior:

  1. Log into Jira with a user that has a Jira administrator's permission.
  2. Navigate to Administration > Manage apps > Behaviors.
  3. Create a new behavior by entering a name for it and clicking the Add button.

With the new behavior created, we need to first create a mapping, so Jira will know what to apply the behavior to:

  1. Click on the Add Mapping link of the new behavior we have created.
  2. Select the projects and issue types you want to apply the behavior to. If you want this to be global, you can select the All projects and All issue types options.
  3. Click the Add Mapping button to save the setting.

With the mapping created, we can now start setting our field-level permission behaviors:

  1. Click on the Fields link of the new behavior we have created.
  2. Select the fields you want to apply field-level permissions to.
  3. Toggle the available behavior options on and off, as shown here:

  1. Click on the Add new condition link and select which users the permission should be applied to. In the following screenshot, the permission will be applied to everyone except users in the jira-administrators group:

  1. Click on the Add button to add the condition.
  2. After you are done with adding fields and conditions, click on the Save button.

Once we have created and configured our field-level permissions, the changes will be applied immediately to the target issues according to the mappings we have configured. Have a look at the next screenshot:

As you can see, the Description field (a system field) and the Team field (a custom field) are in read-only mode when a user is editing the issue.

主站蜘蛛池模板: 弥勒县| 长武县| 南康市| 临清市| 巴林右旗| 丰县| 永昌县| 娄底市| 新竹县| 德化县| 镇原县| 上虞市| 巫溪县| 邵武市| 南江县| 长宁区| 冷水江市| 台安县| 安图县| 宁安市| 渑池县| 赤壁市| 云南省| 霞浦县| 阜阳市| 扎兰屯市| 高淳县| 山西省| 宝坻区| 武隆县| 江陵县| 界首市| 开鲁县| 团风县| 武川县| 盐亭县| 承德县| 雷波县| 上虞市| 宾川县| 兴安盟|