Installation and first run
Get User Story Coverage running with the shortest working setup.
Get the shortest working setup here. Use Configuration when you need the full settings model.
How the first run is organized
This page follows the shortest working path:
Check prerequisites and install the package.
Gather credentials and create a base settings file.
Generate the first local report.
Choose a publication path and publish the results.
Extract the package and install dependencies
Extract the script package, then install requests.
unzip UserStoryCoverageTagging.zip
cd UserStoryCoverageTagging
python3 -m venv venv
source venv/bin/activate
pip install requestsVerify that the scripts load:
python3 US1_RPT_create_report_info_files.py --helpGather the credentials first
You usually need:
SeaLights API token and domain
Jira authorization or Azure DevOps PAT
SCM token only if you run manual tagging scripts
Use Security Considerations for token and permission guidance.
Create the base settings file
Start from the sample file:
cp settings.sample settingsThen add your credentials, ticket query, SeaLights apps, and output folder.
Create the output folder:
mkdir -p reportsAdd the shared settings first:
{
"output_folder": "./reports",
"sealights": {
"api_token": "your-sealights-api-token",
"domain": "yourcompany.sealights.co",
"coverage_days_back": 14
},
"scm": {
"key_pattern_regex": "MYKEY-[0-9]*"
},
"test_stages": [
{
"name": "Unit_Tests",
"reportJsonKey": "unit_tests",
"reportTitle": "Unit Tests"
}
],
"coverage_app_list": [
{
"app_regex": "my-app",
"branch_regex": "main"
}
],
"repo_list": []
}Generate the first local report
Use Report Generation for the exact US1_RPT_create_report_info_files.py and US2_RPT_create_html_reports.py commands.
Choose jira when your ticket source is Jira. Choose ado when your ticket source is Azure DevOps.
Expected output sample
Loading settings from settings
Collecting ticket data
Creating coverage report data
Writing ReportInfo files to ./reports
Generating Summary.html
DoneOpen reports/Summary.html after the run.
Choose your first publication path
Pick the target that matches your environment. Each path adds the source-specific settings, then publishes the first result.
Use this when you are using Jira.
✅ Prerequisites
The base settings file already exists
Jira access already works
The Jira plugin is installed
🚀 Steps
Add the Jira source settings
{
"jira": {
"authorization": "Basic your-base64-encoded-credentials",
"jql": "project = MYPROJECT AND created > startOfMonth(-1)",
"child_levels": 1,
"base_url": "https://yourcompany.atlassian.net",
"api_version": 3,
"notify_users": false
},
"scm": {
"key_pattern_regex": "MYKEY-[0-9]*",
"type": "github"
}
}Use Data sources for the full Jira query model.
Run the first report build
Use Report Generation and choose the Jira example for US1_RPT_create_report_info_files.py.
Generate HTML output after the data files are created.
Publish the Jira coverage update
Use Publish Analytics and run the Jira plugin updater flow.
📤 Expected Outcome
Loaded Jira issues from JQL
Created ReportInfo files
Generated Summary.html
Updated Jira plugin coverage fields
DoneUse this when you are using Azure DevOps.
✅ Prerequisites
The base settings file already exists
Azure DevOps organization, project, and PAT are ready
The ADO plugin is installed
🚀 Steps
Add the Azure DevOps source settings
{
"ado": {
"wiql": "SELECT [System.Id] FROM WorkItems WHERE [System.WorkItemType] = 'User Story' AND [System.ChangedDate] >= @Today - 30",
"authorization": "Basic your-pat-token",
"organization": "your-org",
"project": "your-project",
"child_levels": 1
},
"scm": {
"key_pattern_regex": "[0-9]+",
"type": "ado"
}
}Your PAT must allow work item read access and extension data read/write access. Use Data sources for the full WIQL model.
Run the first report build
Use Report Generation and choose the Azure DevOps example for US1_RPT_create_report_info_files.py.
Generate HTML output after the data files are created.
Publish the Azure DevOps coverage update
Use Publish Analytics and run the ADO plugin updater flow.
📤 Expected Outcome
Loaded Azure DevOps work items from WIQL
Created ReportInfo files
Generated Summary.html
Updated Azure DevOps plugin coverage fields
DoneUse this when you are using legacy Jira custom fields.
Use this path only when the Jira plugin is not available.
✅ Prerequisites
The base settings file already exists
Jira access already works
The target Jira custom field IDs are known
🚀 Steps
Add the Jira source and field mapping
Use Publication targets for the full legacy field model.
Run the first report build
Use Report Generation and choose the Jira example for US1_RPT_create_report_info_files.py.
Generate HTML output after the data files are created.
Publish the Jira custom field update
Use Publish Analytics and run the legacy Jira updater flow.
📤 Expected Outcome
Optional tagging workflows
Use Troubleshooting when the first run fails and FAQ for common setup questions.
Do not disable SSL verification unless your environment requires it.
Upgrade the tool
Contact your SeaLights Customer Success representative to receive the updated script package.
Extract the new package to replace your existing scripts.
If dependencies changed, reinstall them:
Next step
After the first run works, move to:
Last updated
Was this helpful?

