Skip to main content

Check out Port for yourself ➜ 

Manage scorecards

Define scorecards

Port offers a variety of ways to create, edit and delete scorecards:

To create a scorecard from the UI:

  1. Go to the Data model page of your portal.

  2. Expand the relevant blueprint, and click on the Scorecards tab.

  3. Click on the + New scorecard button.

  4. In the Basic Details tab, specify the scorecard's basic details:

    • Title - The scorecard's title.
    • Identifier - The scorecard's identifier.
    • Blueprint - Set to the blueprint you selected.
    • Filter - Filter which entities the scorecard applies to.
  5. In the Rules tab, define the scorecard's rules:

    • Add or remove levels, as well as edit their names.
    • Add rule elements to each level:
      • Title - The rule's title.
      • Identifier - The rule's identifier.
      • Description - The rule's description.
      • Conditions - The rule's conditions.
  6. Click Save to create the scorecard.

Scorecard JSON structure

Instead of using the form, you can also create or edit scorecards in JSON format.
Click on the {...} Edit JSON button in the top right corner of the scorecard creation form.

Below is an example of a scorecard in JSON format:

Ownership scorecard example (click to expand)
{
"identifier": "Ownership",
"title": "Ownership",
"rules": [
{
"identifier": "hasSlackChannel",
"title": "Has Slack Channel",
"level": "Silver",
"query": {
"combinator": "and",
"conditions": [
{
"operator": "isNotEmpty",
"property": "slackChannel"
}
]
}
},
{
"identifier": "hasTeam",
"title": "Has Team",
"level": "Bronze",
"query": {
"combinator": "and",
"conditions": [
{
"operator": "isNotEmpty",
"property": "$team"
}
]
}
}
]
}

Scorecards as blueprints

With the scorecards as blueprints feature, you can manage scorecards as blueprints and entities. This approach provides rich customization, visualization, and automation capabilities for your scorecards.

Since scorecards are now blueprints (which can be extended with additional properties) and their instances are entities, use the following endpoints and Terraform resources to manage them.

When this feature is enabled, you can use either of the following methods to manage scorecards:

To create a scorecard from the UI, you can use either one of the following methods:

Method 1: From the scorecards catalog page

  1. Navigate to the Software Catalog page.

  2. Go to the Scorecards page.

  3. Click the + Scorecard button in the top right corner of the page.

  4. Fill in the form and click Save.

Method 2: From the Data model page

  1. Go to the Data model page of your portal.

  2. Expand the relevant blueprint, and click on the Scorecards tab.

  3. Click on the + New scorecard button.

  4. Fill in the form and click Save.

To learn more, refer to the scorecards as blueprints page.

Next steps

Dive into advanced operations on Scorecards with our API ➡️