With custom fields, you can add additional parameters to issues, i.e., a scheduled start date, estimated effort, or work stage. The field configuration is stored in the .sourcecraft/issues.yaml file in the default branch.
A value from the issues.custom_types.slug section for a choice of one of the preset options.
title: Field name in the SourceCraft UI.
description: Field text description displayed in .
default: Default field value. For a field with preset options, set this to issues.custom_types.values.slug.
visibility: Field visibility. The only supported value is public, i.e., the field value is visible to users who have access to the issue.
custom_types: List of custom field types.
slug: Text ID of custom field type.
kind: Kind of custom field type. The only supported value is enum, which stands for a choice from several preset options.
title: Type name.
description: Type text description.
values: List of possible options.
slug: Option text ID.
title: Option name in the SourceCraft UI.
description: Option text description.
Setting up custom fields for issues in a repository
You can create the .sourcecraft/issues.yaml file in the SourceCraft UI or on a local machine. When creating a file in the UI, add the configuration according to the example below and save your changes to the default branch.
Create or open an issue on a separate page and make sure the issue form displays your custom fields.
Warning
If the configuration contains errors, custom fields are not displayed when creating or editing an issue. The already created issues will retain the custom parameters you set previously. The custom fields will become available again once the configuration is fixed.
If you remove a field from the configuration, it will stop being displayed, including among the parameters of previously created issues. However, the field values are retained and will start being displayed again if you later add a field with the same slug as before to the configuration.
Configuring fields at the organization level
To use common custom fields across all repositories of the organization, create a dedicated .sourcecraft repository and add the .sourcecraft/issues.yaml file to its default branch. You can create the file in the SourceCraft UI or locally, same as for a single repository. The file structure is the same as that used for a single repository.
The repository configuration takes precedence over the organization configuration. If an object with an identical slug exists in both configurations, the repository settings apply. The enum value lists from the repository configuration completely replace the organization lists.
On the issue page, organization fields are displayed first, followed by repository fields. The order within each group matches the order defined in the relevant .sourcecraft/issues.yaml file.