Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

jira_find_task_by_icpsr.py - Find Jira task by openICPSR ID

Description

Finds the highest-numbered Jira Task issue for a given openICPSR project ID. Queries the Jira API to locate tasks associated with a specific openICPSR deposit, useful for linking pipeline runs to the correct Jira ticket.

Usage

python3 tools/jira_find_task_by_icpsr.py <openICPSR-ID>

Arguments

Example

python3 tools/jira_find_task_by_icpsr.py 146462
# Output: AEAREP-8885

Requirements

Environment Variables Required

Behavior

The script is designed to be used in shell scripts and pipelines where the output can be captured and used to set the jiraticket variable.

Example Usage in Pipeline

# Automatically determine Jira ticket from openICPSR ID
if [ -z "$jiraticket" ] && [ -n "${openICPSRID:-}" ]; then
    jiraticket=$(python3 tools/jira_find_task_by_icpsr.py "$openICPSRID" 2>/dev/null || true)
fi

See Also