Skip to content

Link rules

Link rules decide which link types people can use in a project, who can use each type, and which projects they can link to. Each project has its own rules, and its project administrator sets them.

To change the rules, you need the Administer Projects permission in the project, or you need to be a Jira administrator.

To open the rules, go to the project and select Project settings (Space settings in the new Jira navigation), then Apps, then Issue Link Guard. The page has two tabs:

  • General: control on or off, the side panel, the technical account comment, and copying the configuration from another project
  • Link type rules: the control mode and the rules

To see what a setting does, point to the info icon next to it.

One Save button saves both tabs. It's at the end of the General tab. On the Link type rules tab, it's under the Allowed link types table, or at the end of the tab when there's no such table. Nothing takes effect until you select Save. Next to the button, Unsaved changes appears when the form differs from the saved configuration, and Last saved shows when the configuration was last saved.

What the rules cover

The rules apply to every link made through Issue Link Guard:

  • the link window opened from the side panel
  • the links field
  • picker fields, unless a Jira administrator set the field to ignore the project's rules
  • links chosen on the create screen, which are checked for the person who created the issue

Removing a link follows the same rules: users can remove a link only if the rules would let them create it.

The rules don't cover Jira's own Linked work items section. Users who still have Jira's Link Issues permission can link there with any type. To make the rules binding, a Jira administrator turns on the technical account and removes Link Issues from those users.

Turn on control

On the General tab, turn on Control enabled for this project and select Save. While control is off, the app applies no rules: every link type is allowed for everyone who can link in the project. The rules stay saved, and the Link type rules tab shows only a message until you turn control on.

If the technical account is on for the project while control is off, the message warns that anyone who can edit an issue in the project can link it with any type through the app, even without Link Issues.

A Jira administrator can also turn control on or off on the admin page. See Connected projects tab.

Choose a control mode

On the Link type rules tab, under Control mode, select one of the modes:

Mode What it controls
General model (default) One table of link types and the people who can use them, for the whole project.
Rules per issue type Separate tables for selected issue types. Issue types without their own rules use the general model.
Project restriction Which projects users can link to. All link types are allowed for everyone.

Only the selected mode is in effect. Rules you entered in another mode are kept but not used.

Set rules in the general model

The general model applies to the whole project. The Link type rules tab shows it in two tables, both sorted by name:

  • Allowed link types: the types users can use, and who can use each of them
  • Other link types (N): all other types, collapsed under a button that shows their number
Column Meaning
Link type The link type's name.
Status Allowed, Not allowed, or Not configured. Not configured marks a link type added to Jira after the rules were last saved. It's blocked until you allow it.
Outward link and Inward link The type's two directions, for example "blocks" and "is blocked by".
Allowed Allows or blocks the link type.
Who Who can use the type, as tags such as Everyone, Role: Administrators, or Group: support-team. Only in the Allowed link types table.
Actions Edit opens the Access dialog. Only in the Allowed link types table.
The Link type rules tab of the Issue Link Guard project settings: general model, the Allowed link types table with who can use each type, and the Save button under it
Blocks and Relates are allowed for everyone, Duplicate only for the HR Management group. The other 12 link types are collapsed under the Save button.

To allow a link type:

  1. Select Other link types (N) to expand the list.
  2. Turn on Allowed for the link type. It moves to the Allowed link types table.
  3. Next to the link type, select Edit and choose who can use it.
  4. Select Save under the Allowed link types table.

To block a link type, turn off Allowed in the Allowed link types table and select Save. The type moves to Other link types (N).

A link type moves between the tables as soon as you switch Allowed, but the change takes effect only after you save.

To choose who can use an allowed link type:

  1. Next to the link type, select Edit.
  2. In the Access dialog, choose Everyone, Project role, Group, or User.
  3. Unless you chose Everyone, select the roles, groups, or users.
  4. Select Add. Repeat steps 2 to 4 for more entries.
  5. Select Done, then select Save on the page.

To remove an entry, select Remove next to it in the dialog.

Entry Who it covers
Everyone Every user
Project role Members of the selected project roles, including members through a group
Group Members of the selected groups
User The selected users

A user who matches any entry can use the link type. An allowed type with no entries can't be used by anyone, and its Who column shows "No recipients selected."

Set rules per issue type

Use this mode when issue types need different rules. The Link type rules tab lists the project's issue types, and each one shows either General model or Configured.

To set rules for an issue type:

  1. Select Manage next to the issue type. You see a copy of the general model's tables.
  2. Change the tables. From the first change on, the issue type uses its own rules, independent of the general model.
  3. Select ← Back to issue types and repeat for other issue types.
  4. Select Save under the list of issue types.

Opening an issue type and going back without changing anything leaves it on the general model. To return an issue type to the general model, open it and select Clear the configuration of this type (back to the general model).

The rules that apply to a link are those of the issue the user links from. For example, when a user adds a link on MOB-2, the rules of MOB-2's issue type apply.

Restrict target projects

In this mode, users can link the project's issues only to issues in the projects you list and in the project itself.

To restrict target projects:

  1. On the Link type rules tab, under Allowed target projects, add the projects users can link to.
  2. Select Save.

For example, if the Mobile App project (MOB) lists only WEB, users can link MOB issues to issues in MOB and WEB. With no project listed, linking is possible only within the project. The issue search offers only issues from the allowed projects.

This mode doesn't check link types. If the project also uses the technical account, the tab warns that everyone who can use Issue Link Guard in the project can link with any type through the app.

Other project options

These options are on the General tab, in the Side panel and Technical account sections. You can change them whether control is on or off.

Option Default Effect
Show the Issue Link Guard panel on issues Off Adds the Issue Link Guard section with Link issue… to the right-hand panel of the project's issues. See Side panel and link window.
Allow linking from the panel without permission to edit the issue Off Lets users allowed by the rules link from the side panel without Edit Issues. Appears when the panel is turned on. Works only with control enabled and the technical account on. See Technical account.
Add a comment to both issues when the technical account creates or removes a link Off Adds a comment saying who requested the link. Comments notify watchers, so turn this on only if you want those notifications. The activity log records these links either way.

Copy the configuration from another project

To start from another project's settings:

  1. On the General tab, under Tools, turn on Copy the configuration from another project.
  2. Select the source project, then select Load. You need to be an administrator of the source project too.
  3. Review the loaded settings on both tabs and select Save.

The copy covers the settings of both tabs, including Control enabled for this project. Load only fills in the form, and a message above the tabs says that the configuration isn't saved. The project keeps its current settings until you save.

Picker fields that ignore these rules

A Jira administrator can set a picker field to ignore the project's link rules. Such a field links with its one configured link type, whatever the rules on the Link type rules tab say. When a field like that is used in your project and control is on, the General tab lists it under Picker fields that ignore the link type rules. See Picker fields.

Connected projects tab

Jira administrators see the control state of all configured projects in one place. Select Jira admin settings, then Marketplace apps, then Issue Link Guard, then Connected projects. The tab lists the projects that have a saved Issue Link Guard configuration.

Column Meaning
Project Project name and key. Archived, In trash, or Not found marks a project that needs attention.
Control A switch that turns control on or off in the project, and the current state, Enabled or Disabled.
Allowed types How many link types the project's general model allows. For a project in the Project restriction mode, how many target projects it allows.
Creates links Technical account if the project uses the technical account, otherwise User.
Last change Who last changed the project's configuration, and when.

The switch in the Control column saves the change right away. If the change can't be saved, the switch goes back and the tab shows the reason.

To find a project, type its name or key in Search projects by name or key, or select a state in the list next to it: All states, Control enabled, Control disabled, or Needs attention. Needs attention shows projects that are archived, in the trash, or not found in Jira. To sort the table, select a column heading. The Creates links column can't be sorted.

The overview page in the Apps menu lists these projects too, together with projects where the technical account is misconfigured.

To add a project that isn't on the list:

  1. Under Add a project, select the project.
  2. Select Add.

The project is added with control disabled. Set its rules in the project settings, then turn control on.

Limits

What Limit
Entries (roles, groups, and users together) for one link type 30
Different groups in one project's configuration 30
Different users in one project's configuration 30
Issue types with their own rules 50
Allowed target projects 50